spaceapi/Dockerfile

10 lines
239 B
Docker
Raw Normal View History

2024-01-27 12:55:09 +01:00
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"]