blog/Dockerfile
Sergei Poljanski ab7aa5d68e
All checks were successful
Build and Deploy to Production / check (push) Successful in 5s
Build and Deploy to Production / build (push) Successful in 11s
Build and Deploy to Production / deploy (push) Successful in 18s
Keep zola at 0.22.1, in step with the flake
zola 0.23 changes config.toml ([markdown.highlighting] no longer takes
`enabled`) and moved its binary in the image, while the flake that
runs the tests and local serve still has 0.22.1. Bumping only the
image split the two and broke the build (runs 411, 412). Go back to
0.22.1 and have Renovate leave the image pin alone: bump both together
by hand, with the config migration.

Assisted-by: Claude:opus-5-5
2026-11-13 02:08:08 +04:00

15 lines
493 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.28-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