Slight refactor

This commit is contained in:
2021-03-22 12:59:11 -04:00
parent d93cfd183c
commit 5ab87e1c6a
10 changed files with 56 additions and 66 deletions

View File

@@ -1,7 +1,8 @@
FROM python:3.9.2-slim as build
COPY . /app
WORKDIR /app
RUN python setup.py install
RUN python setup.py clean --all install
FROM python:3.9.2-alpine3.13
COPY --from=build /usr/local/lib/python3.9/site-packages /usr/local/lib/python3.9/site-packages
@@ -9,4 +10,4 @@ COPY --from=build /usr/local/lib/python3.9/site-packages /usr/local/lib/python3.
RUN pip3 install gunicorn
ENTRYPOINT ["gunicorn"]
CMD ["overseer:app", "--bind", "0.0.0.0:5000", "--threads=4"]
CMD ["overseer:create_app()", "--bind", "0.0.0.0:5000", "--threads=4"]