Revert "fix(docker): use non-root user earlier"
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
This reverts commit 70f909f8c5
.
This commit is contained in:
parent
70f909f8c5
commit
1ea98eae5b
1 changed files with 1 additions and 1 deletions
|
@ -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" ]
|
||||||
|
|
Loading…
Reference in a new issue