Skip to content

Commit c98ad5f

Browse files
committed
added SET_USER
1 parent 0cd2b40 commit c98ad5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ ENV CONFIG=/etc/nginx/conf.d/OpenSpeedTest-Server.conf
1212
ENV CHANGE_CONTAINER_PORTS=false
1313
ENV HTTP_PORT=3000
1414
ENV HTTPS_PORT=3001
15+
ENV SET_USER=101
1516

1617
COPY /files/OpenSpeedTest-Server.conf ${CONFIG}
1718
COPY /files/entrypoint.sh /entrypoint.sh
@@ -66,7 +67,7 @@ RUN chown nginx:nginx /usr/sbin/crond \
6667
RUN touch /etc/crontabs/nginx
6768
RUN chown -R nginx:nginx /etc/crontabs/nginx
6869

69-
USER 101
70+
USER ${SET_USER}
7071

7172
EXPOSE ${HTTP_PORT} ${HTTPS_PORT}
7273

0 commit comments

Comments
 (0)