From 7812242f8c46ec640043a306bfb53b2d6afe4f3b Mon Sep 17 00:00:00 2001 From: dm1sh Date: Fri, 2 Jul 2021 05:21:06 +0500 Subject: [PATCH] Fixed docker --- .dockerignore | 3 +++ Dockerfile | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..60224f6 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +.venv +__pycache__/ +.vscode \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 186aed9..3e79d79 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,13 @@ FROM python -WORKDIR /app +WORKDIR /srv -COPY ./requirements.txt /app/requirements.txt +COPY ./requirements.txt /srv/requirements.txt RUN pip install -r requirements.txt EXPOSE 80 -COPY ./app /app +COPY ./app /srv/app -CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"] \ No newline at end of file +CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"] \ No newline at end of file