Skip to content
This repository was archived by the owner on Jan 11, 2025. It is now read-only.

Commit fde8c89

Browse files
aligned amazonlinux to the others images
1 parent 22a6e93 commit fde8c89

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tpl/Dockerfile.amazonlinux

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ RUN set -x \
5252
openssl-devel \
5353
pcre-devel \
5454
zlib-devel \
55+
shadow-utils \
5556
&& yum install -y \
5657
gcc-c++ \
5758
gzip \
@@ -92,6 +93,10 @@ RUN set -x \
9293
&& tar xvzf /lua-nginx.tar.gz && rm /lua-nginx.tar.gz \
9394
# NGINX
9495
# ##############################################################################
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 \
95100
# we're on an architecture upstream doesn't officially build for
96101
# let's build binaries from the published packaging sources
97102
&& wget https://nginx.org/download/nginx-${VER_NGINX}.tar.gz -O /nginx.tar.gz \
@@ -166,6 +171,7 @@ RUN set -x \
166171
&& rm -rf /luajit2-${VER_LUAJIT} \
167172
&& rm -rf /nginx-${VER_NGINX} \
168173
&& rm -rf /ngx_devel_kit-${VER_NGX_DEVEL_KIT} \
174+
&& yum clean all \
169175
&& yum remove -y \
170176
gcc-c++ \
171177
gzip \

0 commit comments

Comments
 (0)