Skip to content

Commit 7b0e17f

Browse files
committed
feat: update to the latest nginx stable version:
1 parent 60063e5 commit 7b0e17f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,16 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then ARCHITECTURE=amd64; \
1818
&& curl -sS -L -O --output-dir /tmp/ --create-dirs https://github.com/just-containers/s6-overlay/releases/download/v1.22.1.0/s6-overlay-${ARCHITECTURE}.tar.gz \
1919
&& tar xzf /tmp/s6-overlay-${ARCHITECTURE}.tar.gz -C /
2020

21-
# Install dependencies and main libraries needed for ImageMagick
21+
# Install latest Nginx and dependencies & main libraries needed for ImageMagick
2222
RUN \
23+
apt-get -y update && \
24+
apt-get install -y --no-install-recommends \
25+
gnupg2 ca-certificates lsb-release debian-archive-keyring && \
26+
curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor \
27+
| tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null && \
28+
echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] \
29+
http://nginx.org/packages/debian `lsb_release -cs` nginx" \
30+
| tee /etc/apt/sources.list.d/nginx.list && \
2331
apt-get -y update && \
2432
apt-get install -y --no-install-recommends \
2533
wget nginx libyaml-dev python3-distutils zip unzip cron \

0 commit comments

Comments
 (0)