diff --git a/reverse/Dockerfile b/reverse/Dockerfile index 49fe121..5ecf057 100644 --- a/reverse/Dockerfile +++ b/reverse/Dockerfile @@ -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 \ diff --git a/reverse/run.sh b/reverse/run.sh index 3eb7108..b52ee90 100644 --- a/reverse/run.sh +++ b/reverse/run.sh @@ -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