Files
unbound-site/Dockerfile
T
argoyle 814665eb3b 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.
2025-02-25 21:52:08 +01:00

21 lines
711 B
Docker

FROM amd64/nginx:1.27.4-alpine@sha256:6b48d2402696594180cf34025923d21e5da060f8f19dac74097d3683ebc86207 as build
RUN apk add --update \
wget
ARG HUGO_VERSION="0.89.4"
RUN wget --quiet "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz" && \
tar xzf hugo_${HUGO_VERSION}_Linux-64bit.tar.gz && \
rm -r hugo_${HUGO_VERSION}_Linux-64bit.tar.gz && \
mv hugo /usr/bin
COPY ./ /site
WORKDIR /site
RUN hugo
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
WORKDIR /usr/share/nginx/html