12 lines
204 B
Docker
12 lines
204 B
Docker
FROM python:alpine
|
|
WORKDIR /usr/local/app
|
|
|
|
COPY src ./
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
EXPOSE 5001
|
|
|
|
RUN adduser -D app
|
|
USER app
|
|
|
|
CMD ["gunicorn","-w 2", "-b 0.0.0.0:5001", "wsgi:app"]
|