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
(cherry picked from commit 2ba3d94)
  • Loading branch information
jometzner authored and shauke committed Jul 13, 2022
1 parent 5f22ccc commit c983feb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nginx/Dockerfile
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
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 c983feb

Please sign in to comment.