Skip to content

Commit

Permalink
fix: pin nginx version to 1.21.6 instead of using latest (#1188)
Browse files Browse the repository at this point in the history
  • Loading branch information
jometzner authored Jun 17, 2022
1 parent 97761e7 commit 2ba3d94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM ubuntu:focal as buildstep
RUN apt-get update
RUN apt-get install -y curl build-essential zlib1g-dev libpcre3-dev unzip wget uuid-dev sudo openssl libssl-dev
RUN curl -kfL -sS https://ngxpagespeed.com/install > install.sh
RUN bash install.sh --nginx-version latest --additional-nginx-configure-arguments '--with-http_ssl_module --with-http_stub_status_module'
RUN bash install.sh --ngx-pagespeed-version v1.13.35.2-stable --nginx-version 1.21.6 --additional-nginx-configure-arguments '--with-http_ssl_module --with-http_stub_status_module'

FROM scratch as configstep
COPY --from=nginx:mainline /etc/nginx /etc/nginx
Expand Down
1 change: 1 addition & 0 deletions nginx/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ fi

if [ -z "$*" ]
then
/usr/local/nginx/sbin/nginx -V
/usr/local/nginx/sbin/nginx -c /etc/nginx/nginx.conf -g "daemon off;"
else
exec "$@"
Expand Down

0 comments on commit 2ba3d94

Please sign in to comment.