docker fix

This commit is contained in:
Patrick 2024-11-21 16:26:57 +01:00
parent 0630b15f2e
commit 87d191cd07
2 changed files with 2 additions and 2 deletions

13
dist/Dockerfile vendored
View file

@ -1,13 +0,0 @@
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"]