From 814665eb3b8736f18d351deb379f7a330133d232 Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Tue, 25 Feb 2025 21:52:08 +0100 Subject: [PATCH] chore(docker): update nginx base image to 1.27.4-alpine Replace the nginx base image with amd64/nginx:1.27.4-alpine to ensure compatibility and take advantage of the latest features and security updates. Adjust the image reference in both build and runtime stages of the Dockerfile. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d4278a3..f2113eb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM nginx:alpine@sha256:4ff102c5d78d254a6f0da062b3cf39eaf07f01eec0927fd21e219d0af8bc0591 as build +FROM amd64/nginx:1.27.4-alpine@sha256:6b48d2402696594180cf34025923d21e5da060f8f19dac74097d3683ebc86207 as build RUN apk add --update \ wget @@ -13,7 +13,7 @@ COPY ./ /site WORKDIR /site RUN hugo -FROM nginx:alpine@sha256:4ff102c5d78d254a6f0da062b3cf39eaf07f01eec0927fd21e219d0af8bc0591 +FROM amd64/nginx:1.27.4-alpine@sha256:6b48d2402696594180cf34025923d21e5da060f8f19dac74097d3683ebc86207 ADD default.conf /etc/nginx/conf.d/default.conf COPY --from=build /site/public /usr/share/nginx/html