Fix user and group creation for docker containers

This commit is contained in:
zeke 2024-02-07 10:47:36 -08:00 committed by Zeke Roa
parent 57a6154287
commit 17820b31c4
3 changed files with 6 additions and 14 deletions

View file

@ -1,7 +1,10 @@
FROM nginx:1.25.3-alpine
COPY . /code
RUN /code/docker/common-setup.sh web
RUN addgroup --system leftypol \
&& adduser --system leftypol \
&& adduser leftypol leftypol \
&& /code/docker/common-setup.sh
CMD ["nginx", "-g", "daemon off;"]