Skip to content

Commit

Permalink
build(deps): bump nginx from 1.27.0 to 1.27.2 in /nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
saschanowak committed Oct 17, 2024
1 parent 4bf063c commit 388a1fe
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1
# Adding third-party modules to nginx official image
# SEE https://github.com/nginxinc/docker-nginx/tree/master/modules
FROM nginx:1.27.0 AS builder
FROM nginx:1.27.2 AS builder

ENV ENABLED_MODULES="headers-more subs-filter geoip2"
SHELL ["/bin/bash", "-exo", "pipefail", "-c"]
Expand All @@ -11,13 +11,15 @@ RUN if [ "$ENABLED_MODULES" = "" ]; then \
exit 1; \
fi

COPY ./ /modules/

RUN apt-get update \
&& apt-get install -y --no-install-suggests --no-install-recommends \
patch make wget mercurial devscripts debhelper dpkg-dev \
patch make wget git devscripts debhelper dpkg-dev \
quilt lsb-release build-essential libxml2-utils xsltproc \
equivs git g++ libparse-recdescent-perl \
&& XSLSCRIPT_SHA512="f7194c5198daeab9b3b0c3aebf006922c7df1d345d454bd8474489ff2eb6b4bf8e2ffe442489a45d1aab80da6ecebe0097759a1e12cc26b5f0613d05b7c09ffa *stdin" \
&& wget -O /tmp/xslscript.pl https://hg.nginx.org/xslscript/raw-file/01dc9ba12e1b/xslscript.pl \
&& wget -O /tmp/xslscript.pl https://raw.githubusercontent.com/nginx/xslscript/9204424259c343ca08a18a78915f40f28025e093/xslscript.pl \
&& if [ "$(cat /tmp/xslscript.pl | openssl sha512 -r)" = "$XSLSCRIPT_SHA512" ]; then \
echo "XSLScript checksum verification succeeded!"; \
chmod +x /tmp/xslscript.pl; \
Expand All @@ -26,7 +28,7 @@ RUN apt-get update \
echo "XSLScript checksum verification failed!"; \
exit 1; \
fi \
&& hg clone -r ${NGINX_VERSION}-${PKG_RELEASE%%~*} https://hg.nginx.org/pkg-oss/ \
&& git clone -b ${NGINX_VERSION}-${PKG_RELEASE%%~*} https://github.com/nginx/pkg-oss/ \
&& cd pkg-oss \
&& mkdir /tmp/packages \
&& for module in $ENABLED_MODULES; do \
Expand Down Expand Up @@ -68,7 +70,7 @@ RUN apt-get update \
done \
&& echo "BUILT_MODULES=\"$BUILT_MODULES\"" > /tmp/packages/modules.env

FROM nginx:1.27.0 AS nginx
FROM nginx:1.27.2 AS nginx
ENV TZ="Europe/Berlin"
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

Expand Down

0 comments on commit 388a1fe

Please sign in to comment.