nginx: binary stripping

This commit is contained in:
Wonderfall 2016-04-20 15:41:06 +02:00
parent 55091490fb
commit 3e9e19494f

View File

@ -21,7 +21,8 @@ RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/re
tar \ tar \
libtool \ libtool \
pcre-dev \ pcre-dev \
zlib-dev" \ zlib-dev
binutils" \
&& apk -U add \ && apk -U add \
$BUILD_DEPS \ $BUILD_DEPS \
pcre \ pcre \
@ -76,6 +77,8 @@ RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/re
--sbin-path=/usr/local/sbin/nginx \ --sbin-path=/usr/local/sbin/nginx \
--add-module=/tmp/ngx_brotli \ --add-module=/tmp/ngx_brotli \
&& make -j $NB_CORES && make install \ && make -j $NB_CORES && make install \
&& make clean \
&& strip -s /usr/local/sbin/nginx \
&& apk del $BUILD_DEPS \ && apk del $BUILD_DEPS \
&& rm -rf /tmp/* /var/cache/apk/* && rm -rf /tmp/* /var/cache/apk/*