Skip to content

Commit bbcebe8

Browse files
committed
Revert Dockerfile user to $UID until next major release
1 parent 2899b20 commit bbcebe8

File tree

15 files changed

+27
-27
lines changed

15 files changed

+27
-27
lines changed

Dockerfile-alpine-perl.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ RUN set -x \
7373
&& if [ -n "/etc/apk/keys/abuild-key.rsa.pub" ]; then rm -f /etc/apk/keys/abuild-key.rsa.pub; fi \
7474
&& if [ -n "/etc/apk/keys/nginx_signing.rsa.pub" ]; then rm -f /etc/apk/keys/nginx_signing.rsa.pub; fi
7575

76-
USER nginx
76+
USER $UID

Dockerfile-alpine-slim.template

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ RUN sed -i 's,listen 80;,listen 8080;,' /etc/nginx/conf.d/default.co
112112
&& sed -i 's,/var/run/nginx.pid,/tmp/nginx.pid,' /etc/nginx/nginx.conf \
113113
&& sed -i "/^http {/a \ proxy_temp_path /tmp/proxy_temp;\n client_body_temp_path /tmp/client_temp;\n fastcgi_temp_path /tmp/fastcgi_temp;\n uwsgi_temp_path /tmp/uwsgi_temp;\n scgi_temp_path /tmp/scgi_temp;\n" /etc/nginx/nginx.conf \
114114
# nginx user must own the cache and etc directory to write cache and tweak the nginx config
115-
&& chown -R nginx:0 /var/cache/nginx \
115+
&& chown -R $UID:0 /var/cache/nginx \
116116
&& chmod -R g+w /var/cache/nginx \
117-
&& chown -R nginx:0 /etc/nginx \
117+
&& chown -R $UID:0 /etc/nginx \
118118
&& chmod -R g+w /etc/nginx
119119

120120
COPY docker-entrypoint.sh /
@@ -127,6 +127,6 @@ EXPOSE 8080
127127

128128
STOPSIGNAL SIGQUIT
129129

130-
USER nginx
130+
USER $UID
131131

132132
CMD ["nginx", "-g", "daemon off;"]

Dockerfile-alpine.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@ RUN set -x \
8080
# Bring in curl and ca-certificates to make registering on DNS SD easier
8181
&& apk add --no-cache curl ca-certificates
8282

83-
USER nginx
83+
USER $UID

Dockerfile-debian-perl.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@ RUN set -x \
8080
&& rm -rf "$tempDir" /etc/apt/sources.list.d/temp.list; \
8181
fi
8282

83-
USER nginx
83+
USER $UID

Dockerfile-debian.template

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ RUN sed -i 's,listen 80;,listen 8080;,' /etc/nginx/conf.d/default.co
101101
&& sed -i 's,/var/run/nginx.pid,/tmp/nginx.pid,' /etc/nginx/nginx.conf \
102102
&& sed -i "/^http {/a \ proxy_temp_path /tmp/proxy_temp;\n client_body_temp_path /tmp/client_temp;\n fastcgi_temp_path /tmp/fastcgi_temp;\n uwsgi_temp_path /tmp/uwsgi_temp;\n scgi_temp_path /tmp/scgi_temp;\n" /etc/nginx/nginx.conf \
103103
# nginx user must own the cache and etc directory to write cache and tweak the nginx config
104-
&& chown -R nginx:0 /var/cache/nginx \
104+
&& chown -R $UID:0 /var/cache/nginx \
105105
&& chmod -R g+w /var/cache/nginx \
106-
&& chown -R nginx:0 /etc/nginx \
106+
&& chown -R $UID:0 /etc/nginx \
107107
&& chmod -R g+w /etc/nginx
108108

109109
COPY docker-entrypoint.sh /
@@ -116,6 +116,6 @@ EXPOSE 8080
116116

117117
STOPSIGNAL SIGQUIT
118118

119-
USER nginx
119+
USER $UID
120120

121121
CMD ["nginx", "-g", "daemon off;"]

mainline/alpine-perl/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ RUN set -x \
8484
&& if [ -n "/etc/apk/keys/abuild-key.rsa.pub" ]; then rm -f /etc/apk/keys/abuild-key.rsa.pub; fi \
8585
&& if [ -n "/etc/apk/keys/nginx_signing.rsa.pub" ]; then rm -f /etc/apk/keys/nginx_signing.rsa.pub; fi
8686

87-
USER nginx
87+
USER $UID

mainline/alpine-slim/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ RUN sed -i 's,listen 80;,listen 8080;,' /etc/nginx/conf.d/default.co
118118
&& sed -i 's,/var/run/nginx.pid,/tmp/nginx.pid,' /etc/nginx/nginx.conf \
119119
&& sed -i "/^http {/a \ proxy_temp_path /tmp/proxy_temp;\n client_body_temp_path /tmp/client_temp;\n fastcgi_temp_path /tmp/fastcgi_temp;\n uwsgi_temp_path /tmp/uwsgi_temp;\n scgi_temp_path /tmp/scgi_temp;\n" /etc/nginx/nginx.conf \
120120
# nginx user must own the cache and etc directory to write cache and tweak the nginx config
121-
&& chown -R nginx:0 /var/cache/nginx \
121+
&& chown -R $UID:0 /var/cache/nginx \
122122
&& chmod -R g+w /var/cache/nginx \
123-
&& chown -R nginx:0 /etc/nginx \
123+
&& chown -R $UID:0 /etc/nginx \
124124
&& chmod -R g+w /etc/nginx
125125

126126
COPY docker-entrypoint.sh /
@@ -133,6 +133,6 @@ EXPOSE 8080
133133

134134
STOPSIGNAL SIGQUIT
135135

136-
USER nginx
136+
USER $UID
137137

138138
CMD ["nginx", "-g", "daemon off;"]

mainline/alpine/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@ RUN set -x \
9090
# Bring in curl and ca-certificates to make registering on DNS SD easier
9191
&& apk add --no-cache curl ca-certificates
9292

93-
USER nginx
93+
USER $UID

mainline/debian-perl/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,4 @@ RUN set -x \
9191
&& rm -rf "$tempDir" /etc/apt/sources.list.d/temp.list; \
9292
fi
9393

94-
USER nginx
94+
USER $UID

mainline/debian/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ RUN sed -i 's,listen 80;,listen 8080;,' /etc/nginx/conf.d/default.co
111111
&& sed -i 's,/var/run/nginx.pid,/tmp/nginx.pid,' /etc/nginx/nginx.conf \
112112
&& sed -i "/^http {/a \ proxy_temp_path /tmp/proxy_temp;\n client_body_temp_path /tmp/client_temp;\n fastcgi_temp_path /tmp/fastcgi_temp;\n uwsgi_temp_path /tmp/uwsgi_temp;\n scgi_temp_path /tmp/scgi_temp;\n" /etc/nginx/nginx.conf \
113113
# nginx user must own the cache and etc directory to write cache and tweak the nginx config
114-
&& chown -R nginx:0 /var/cache/nginx \
114+
&& chown -R $UID:0 /var/cache/nginx \
115115
&& chmod -R g+w /var/cache/nginx \
116-
&& chown -R nginx:0 /etc/nginx \
116+
&& chown -R $UID:0 /etc/nginx \
117117
&& chmod -R g+w /etc/nginx
118118

119119
COPY docker-entrypoint.sh /
@@ -126,6 +126,6 @@ EXPOSE 8080
126126

127127
STOPSIGNAL SIGQUIT
128128

129-
USER nginx
129+
USER $UID
130130

131131
CMD ["nginx", "-g", "daemon off;"]

0 commit comments

Comments
 (0)