jet-search/dist/Dockerfile
2024-11-21 16:14:12 +01:00

13 lines
232 B
Docker

FROM python:alpine
WORKDIR /usr/local/app
COPY src ./
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 5000
RUN adduser -D app
RUN chown -R app:app ../app
USER app
CMD ["gunicorn","-w 2", "-b 0.0.0.0:5000", "wsgi:app"]