From 003d0668b4c3b16204e077bdcc79d0ae40b1bdb9 Mon Sep 17 00:00:00 2001 From: NishantBorthakur Date: Thu, 1 Jun 2023 15:27:30 +0530 Subject: [PATCH] minor fix --- Dockerfile | 7 +------ main.py | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index a5e591a6b..83c3f08f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,7 @@ FROM python:3.9 - WORKDIR /app - COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt - COPY . . COPY config.yaml . -RUN chmod +x ./entrypoint* - -ENTRYPOINT ["./entrypoint.sh"] +CMD ["uvicorn", "main:app", "--host", "0.0.0.0","--port", "8001","--reload"] \ No newline at end of file diff --git a/main.py b/main.py index d96232171..e550fb5a7 100644 --- a/main.py +++ b/main.py @@ -65,7 +65,7 @@ allow_headers=["*"], ) -# DBBaseModel.metadata.create_all(bind=engine, checkfirst=True) +DBBaseModel.metadata.create_all(bind=engine, checkfirst=True) # DBBaseModel.metadata.drop_all(bind=engine,checkfirst=True)