Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ ENV JAEGER_CLIENT_VERSION v0.7.0
ENV OPENTRACING_LIB_VERSION v1.6.0
# https://github.com/opentracing-contrib/nginx-opentracing
ENV OPENTRACING_MODULE_VERSION v0.16.0
# https://github.com/nginx-modules/ngx_http_acme_module
ENV ACME_MODULE_VERSION master

COPY *.patch /tmp/
RUN set -eux \
Expand All @@ -41,11 +43,13 @@ RUN set -eux \
&& apk add --no-cache \
cmake \
curl \
curl-dev \
g++ \
gcc \
gettext \
git \
gnupg1 \
jansson-dev \
libc-dev \
linux-headers \
make \
Expand Down Expand Up @@ -171,6 +175,9 @@ RUN set -eux \
&& git clone --depth=1 --single-branch -b ${NJS_MODULE_VERSION} https://github.com/nginx/njs.git \
&& (cd njs; CFLAGS="-O2 -m64 -march=x86-64 -mfpmath=sse -msse4.2 -pipe -fPIC -fomit-frame-pointer" ./configure; make njs; make test) \
\
# Let's Encrypt module for Nginx
&& git clone --depth=1 --single-branch -b ${ACME_MODULE_VERSION} https://github.com/levonet/ngx_http_acme_module.git \
\
&& CFLAGS="-pipe -m64 -Ofast -flto -mtune=generic -march=x86-64 -fPIE -fPIC -funroll-loops -fstack-protector-strong -mfpmath=sse -msse4.2 -ffast-math -fomit-frame-pointer -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2" \
./configure \
--prefix=/etc/nginx \
Expand Down Expand Up @@ -217,6 +224,7 @@ RUN set -eux \
--add-dynamic-module=/usr/src/nginx-${NGINX_VERSION}/nginx-upsync-module \
--add-dynamic-module=/usr/src/nginx-${NGINX_VERSION}/ngx_brotli \
--add-dynamic-module=/usr/src/nginx-${NGINX_VERSION}/ngx_devel_kit \
--add-dynamic-module=/usr/src/nginx-${NGINX_VERSION}/ngx_http_acme_module \
--add-dynamic-module=/usr/src/nginx-${NGINX_VERSION}/ngx_http_redis \
--add-dynamic-module=/usr/src/nginx-${NGINX_VERSION}/ngx_postgres \
--add-dynamic-module=/usr/src/nginx-${NGINX_VERSION}/njs/nginx \
Expand Down Expand Up @@ -260,7 +268,9 @@ COPY nginx.conf /etc/nginx/nginx.conf
COPY nginx.vh.default.conf /etc/nginx/conf.d/default.conf

RUN apk add --no-cache \
jansson \
libcrypto1.1 \
libcurl \
libintl \
libpq \
libssl1.1 \
Expand Down