mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-20 04:19:18 +00:00
nginx: binary stripping
This commit is contained in:
parent
55091490fb
commit
3e9e19494f
@ -21,7 +21,8 @@ RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/re
|
||||
tar \
|
||||
libtool \
|
||||
pcre-dev \
|
||||
zlib-dev" \
|
||||
zlib-dev
|
||||
binutils" \
|
||||
&& apk -U add \
|
||||
$BUILD_DEPS \
|
||||
pcre \
|
||||
@ -76,6 +77,8 @@ RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/re
|
||||
--sbin-path=/usr/local/sbin/nginx \
|
||||
--add-module=/tmp/ngx_brotli \
|
||||
&& make -j $NB_CORES && make install \
|
||||
&& make clean \
|
||||
&& strip -s /usr/local/sbin/nginx \
|
||||
&& apk del $BUILD_DEPS \
|
||||
&& rm -rf /tmp/* /var/cache/apk/*
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user