Fix user and group creation for docker containers

This commit is contained in:
zeke
2024-02-07 10:47:36 -08:00
committed by Zankaria
parent f3c7bad9cd
commit 03228eb87d
3 changed files with 9 additions and 7 deletions

View File

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