Skip to content

Commit a122016

Browse files
committed
Remove openssl
Since alpine now have openssl with version > 1.1.1
1 parent f953517 commit a122016

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ ENV NGINX_VERSION 1.15.12
77
RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
88
&& CONFIG="\
99
--add-module=../ngx_brotli \
10-
--with-openssl=../openssl-1.1.1b \
1110
--prefix=/etc/nginx \
1211
--sbin-path=/usr/sbin/nginx \
1312
--modules-path=/usr/lib/nginx/modules \
@@ -70,7 +69,7 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
7069
git \
7170
&& curl -fSL https://nginx.org/download/nginx-$NGINX_VERSION.tar.gz -o nginx.tar.gz \
7271
&& curl -fSL https://nginx.org/download/nginx-$NGINX_VERSION.tar.gz.asc -o nginx.tar.gz.asc \
73-
&& curl -fSL https://www.openssl.org/source/openssl-1.1.1b.tar.gz -o openssl-1.1.1b.tar.gz \
72+
# Verifying Nginx
7473
&& export GNUPGHOME="$(mktemp -d)" \
7574
&& found=''; \
7675
for server in \
@@ -87,9 +86,8 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
8786
&& rm -rf "$GNUPGHOME" nginx.tar.gz.asc \
8887
&& mkdir -p /usr/src \
8988
&& tar -zxC /usr/src -f nginx.tar.gz \
90-
&& tar -zxC /usr/src -f openssl-1.1.1b.tar.gz \
9189
&& rm -f nginx.tar.gz \
92-
&& rm -f openssl-1.1.1b.tar.gz \
90+
# Downloading Brotli
9391
&& cd /usr/src \
9492
&& git clone https://github.com/google/ngx_brotli.git \
9593
&& cd ngx_brotli \
@@ -119,7 +117,6 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
119117
&& strip /usr/sbin/nginx* \
120118
&& strip /usr/lib/nginx/modules/*.so \
121119
&& rm -rf /usr/src/nginx-$NGINX_VERSION \
122-
&& rm -rf /usr/src/openssl-1.1.1b \
123120
&& rm -rf /usr/src/ngx_brotli \
124121
\
125122
# Bring in gettext so we can get `envsubst`, then throw

0 commit comments

Comments
 (0)