overseer/Dockerfile

14 lines
347 B
Docker
Raw Permalink Normal View History

2021-03-21 02:16:24 +00:00
FROM python:3.9.2-slim as build
COPY . /app
2021-03-22 16:59:11 +00:00
2021-03-21 02:16:24 +00:00
WORKDIR /app
2021-03-22 16:59:11 +00:00
RUN python setup.py clean --all install
2021-03-21 02:16:24 +00:00
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"]
2021-03-22 16:59:11 +00:00
CMD ["overseer:create_app()", "--bind", "0.0.0.0:5000", "--threads=4"]