File tree 3 files changed +6
-3
lines changed 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ ARG PHPUSER
6
6
ENV PHPGROUP=${PHPGROUP}
7
7
ENV PHPUSER=${PHPUSER}
8
8
9
- RUN adduser -g ${PHPGROUP} -s /bin/sh -D ${PHPUSER}; exit 0
9
+ RUN addgroup --system ${PHPGROUP}; exit 0
10
+ RUN adduser --system -G ${PHPGROUP} -s /bin/sh -D ${PHPUSER}; exit 0
10
11
11
12
WORKDIR /var/www/html
Original file line number Diff line number Diff line change @@ -12,4 +12,5 @@ ADD ./nginx/default.conf /etc/nginx/conf.d/
12
12
13
13
RUN mkdir -p /var/www/html
14
14
15
- RUN adduser -g ${NGINXGROUP} -s /bin/sh -D ${NGINXUSER}; exit 0
15
+ RUN addgroup --system ${NGINXGROUP}; exit 0
16
+ RUN adduser --system -G ${NGINXGROUP} -s /bin/sh -D ${NGINXUSER}; exit 0
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ ARG PHPUSER
6
6
ENV PHPGROUP=${PHPGROUP}
7
7
ENV PHPUSER=${PHPUSER}
8
8
9
- RUN adduser -g ${PHPGROUP} -s /bin/sh -D ${PHPUSER}; exit 0
9
+ RUN addgroup --system ${PHPGROUP}; exit 0
10
+ RUN adduser --system -G ${PHPGROUP} -s /bin/sh -D ${PHPUSER}; exit 0
10
11
11
12
RUN mkdir -p /var/www/html
12
13
You can’t perform that action at this time.
0 commit comments