fix(docker): use non-root user earlier
All checks were successful
ci/woodpecker/push/publish Pipeline was successful

This commit is contained in:
Mylloon 2023-12-21 18:52:15 +01:00
parent f471374b30
commit 70f909f8c5
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -3,6 +3,7 @@
FROM python:3.11.6-alpine3.18
RUN addgroup -S td && adduser -S td -G td
USER td
WORKDIR /txtdiary
@ -13,6 +14,5 @@ RUN pip install pyuwsgi -r requirements.txt
COPY ./src ./app
USER td
CMD [ "uwsgi", "--http", "0.0.0.0:80", "-M", "-w" ,"app.app", "--callable", "app" ]