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

This reverts commit 70f909f8c5.
This commit is contained in:
Mylloon 2023-12-21 18:58:52 +01:00
parent 70f909f8c5
commit 1ea98eae5b
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

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