mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-20 04:19:18 +00:00
reverse: su-exec instead of gosu
This commit is contained in:
parent
a34d521d6f
commit
1f4a3708e9
@ -8,8 +8,7 @@ ARG BUILD_CORES
|
||||
|
||||
ENV UID=991 GID=991
|
||||
|
||||
RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
|
||||
&& echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
|
||||
RUN echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
|
||||
&& NB_CORES=${BUILD_CORES-`getconf _NPROCESSORS_CONF`} \
|
||||
&& BUILD_DEPS=" \
|
||||
build-base \
|
||||
@ -29,8 +28,8 @@ RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/re
|
||||
zlib \
|
||||
libgcc \
|
||||
libstdc++ \
|
||||
gosu@testing \
|
||||
libressl@testing \
|
||||
su-exec \
|
||||
openssl \
|
||||
tini@commuedge \
|
||||
&& cd /tmp && git clone https://github.com/bagder/libbrotli && cd libbrotli \
|
||||
&& ./autogen.sh && ./configure && make -j $NB_CORES && make install \
|
||||
|
@ -2,4 +2,4 @@
|
||||
touch /var/run/nginx.pid
|
||||
chown -R $UID:$GID /etc/nginx /var/log/nginx /var/run/nginx.pid /sites-enabled /conf.d /certs
|
||||
chmod -R 700 /certs
|
||||
gosu $UID:$GID nginx
|
||||
su-exec $UID:$GID nginx
|
||||
|
Loading…
x
Reference in New Issue
Block a user