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