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.
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user