FROM python:alpine ENV WORKERS=4 RUN mkdir /app && adduser -D app WORKDIR /app COPY requirements.txt /app 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"]