diff --git a/boring-nginx/Dockerfile b/boring-nginx/Dockerfile index 30ce289..0a7562a 100644 --- a/boring-nginx/Dockerfile +++ b/boring-nginx/Dockerfile @@ -43,10 +43,10 @@ RUN echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/ap && make -j ${NB_CORES} && make install \ && mkdir /tmp/ngx_brotli && cd /tmp/ngx_brotli \ && wget -qO- https://github.com/google/ngx_brotli/archive/master.tar.gz | tar xz --strip 1 \ - && cd /tmp && git clone https://boringssl.googlesource.com/boringssl \ - && cd boringssl \ + && cd /tmp && git clone https://boringssl.googlesource.com/boringssl && cd boringssl \ && mkdir build && cd build && CC=clang CXX=clang++ cmake -DCMAKE_BUILD_TYPE=Release .. \ && make -j ${NB_CORES} && cd .. \ + && sed -i 's/OpenSSL 1.0.2 (compatible; BoringSSL)/BoringSSL/g' include/openssl/crypto.h \ && mkdir -p .openssl/lib/ && cd .openssl && ln -s ../include && cd .. \ && cp build/crypto/libcrypto.a build/ssl/libssl.a .openssl/lib && cd /tmp \ && NGINX_TARBALL="nginx-${NGINX_VERSION}.tar.gz" \