Updated nextcloud to work dynamically with www-data ID and GID

This commit is contained in:
2023-07-24 22:02:51 +02:00
parent 680fedaae0
commit 74587b66a8
5 changed files with 41 additions and 11 deletions
+8 -2
View File
@@ -1,5 +1,11 @@
FROM nginx:alpine
#FROM nginx:alpine
FROM nginx:bullseye
RUN adduser --system --no-create-home --home /nonexistent --gecos 'www-data user' --shell /bin/false --uid 82 www-data
ARG UID=1000
ARG GID=1000
RUN usermod -u $UID -o www-data
#RUN adduser --system --no-create-home --home /nonexistent --gecos 'www-data user' --shell /bin/false --uid $UID www-data
COPY nginx.conf /etc/nginx/nginx.conf