Docker configuration

This commit is contained in:
2021-03-20 22:16:24 -04:00
parent de195834df
commit bdf6dd4e77
5 changed files with 34 additions and 12 deletions

12
Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM python:3.9.2-slim as build
COPY . /app
WORKDIR /app
RUN python setup.py 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
RUN pip3 install gunicorn
ENTRYPOINT ["gunicorn"]
CMD ["overseer:app", "--bind", "0.0.0.0:5000", "--threads=4"]