Floating tags (17-alpine, 3.4-slim, nginx:alpine, :latest, :debug, @v7) change under a deploy without anyone deciding it: the storage deploy moved Postgres to 17.12 on its own because of postgres:17-alpine. Pin every image and action to its exact current version, so each change arrives as a reviewed Renovate PR and a rollback is a revert. Assisted-by: Claude:opus-5-5
15 lines
495 B
Docker
15 lines
495 B
Docker
# Keep in step with the zola in flake.nix (tests, local serve); Renovate
|
|
# leaves this pin alone (renovate.json). 0.23 changes config.toml.
|
|
FROM ghcr.io/getzola/zola:v0.22.1 AS build
|
|
|
|
COPY . /project
|
|
WORKDIR /project
|
|
RUN ["zola", "build"]
|
|
|
|
FROM nginx:1.30.6-alpine
|
|
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
COPY --from=build /project/public /usr/share/nginx/html
|
|
|
|
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
|
|
CMD wget -qO /dev/null http://127.0.0.1/ || exit 1
|