blog/Dockerfile
Sergei Poljanski b6b10a9bdb
All checks were successful
Test / check (push) Successful in 16s
Build and Deploy to Production / check (push) Successful in 6s
Build and Deploy to Production / build (push) Successful in 9s
Build and Deploy to Production / deploy (push) Successful in 19s
nginx 1.31.8
Follow nginx's mainline line, which upstream recommends for most users
and which czsk already runs. The config uses nothing that changed.

Rollback: revert; the 1.30.6 image stays in the registry.

Assisted-by: Claude:opus-5-5
2026-11-13 03:25:27 +04:00

16 lines
526 B
Docker

# Keep in step with the zola in flake.nix (tests, local serve): bump this
# pin together with nixpkgs in flake.lock.
FROM ghcr.io/getzola/zola:v0.23.6 AS build
COPY . /project
WORKDIR /project
# zola is /zola in the image since 0.23, not on PATH
RUN ["/zola", "build"]
FROM nginx:1.31.8-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