diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..4627605 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +.github +.ruff_cache +.vscode diff --git a/Dockerfile b/Dockerfile index 2603f83..6ed4a13 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,6 @@ WORKDIR /opt COPY . lvmapi RUN pip3 install -U pip setuptools wheel -RUN cd lvmapi && pip3 install . -RUN rm -Rf lvmapi +RUN cd lvmapi && pip3 install -U -e . -ENTRYPOINT gunicorn lvmapi.app:app --workers 4 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:80 +CMD ["fastapi", "run", "lvmapi/src/lvmapi/app.py", "--port", "80", "--workers", "1"]