spaceapi/Dockerfile

10 lines
247 B
Docker
Raw Permalink 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 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"]