This repository was archived by the owner on Jan 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ RUN set -x \
52
52
openssl-devel \
53
53
pcre-devel \
54
54
zlib-devel \
55
+ shadow-utils \
55
56
&& yum install -y \
56
57
gcc-c++ \
57
58
gzip \
@@ -92,6 +93,10 @@ RUN set -x \
92
93
&& tar xvzf /lua-nginx.tar.gz && rm /lua-nginx.tar.gz \
93
94
# NGINX
94
95
# ##############################################################################
96
+ # create nginx user/group first, to be consistent throughout docker variants
97
+ && addgroup -g 1001 -S nginx \
98
+ && adduser -S -D -H -u 1001 -h /var/cache/nginx -s /sbin/nologin -G nginx -g nginx nginx \
99
+ && yum makecache \
95
100
# we're on an architecture upstream doesn't officially build for
96
101
# let's build binaries from the published packaging sources
97
102
&& wget https://nginx.org/download/nginx-${VER_NGINX}.tar.gz -O /nginx.tar.gz \
@@ -166,6 +171,7 @@ RUN set -x \
166
171
&& rm -rf /luajit2-${VER_LUAJIT} \
167
172
&& rm -rf /nginx-${VER_NGINX} \
168
173
&& rm -rf /ngx_devel_kit-${VER_NGX_DEVEL_KIT} \
174
+ && yum clean all \
169
175
&& yum remove -y \
170
176
gcc-c++ \
171
177
gzip \
You can’t perform that action at this time.
0 commit comments