2024-01-27 12:55:09 +01:00
|
|
|
FROM python:alpine
|
|
|
|
ENV WORKERS=4
|
|
|
|
RUN mkdir /app && adduser -D app
|
|
|
|
WORKDIR /app
|
2024-01-27 12:59:33 +01:00
|
|
|
COPY requirements.txt LICENSE /app
|
2024-01-27 12:55:09 +01:00
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
COPY app.py /app
|
|
|
|
USER app
|
|
|
|
ENTRYPOINT ["sh", "-c","exec gunicorn -w $WORKERS -b 0.0.0.0 app:app"]
|