blog/Dockerfile
Sergei Poljanski 2f1cc8184a
Some checks failed
Build and Deploy to Production / check (push) Successful in 5s
Build and Deploy to Production / build (push) Failing after 4s
Build and Deploy to Production / deploy (push) Has been skipped
Dockerfile: call zola by its path in the 0.23 image
zola's image moved the binary from /bin/zola to /zola, outside PATH,
so the build stage failed with "zola: executable file not found"
after the Renovate bump to 0.23.6 (deploy run 411).

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

15 lines
501 B
Docker

# Renovate bumps the zola pin; flake.nix (used by the tests) tracks nixpkgs.
FROM ghcr.io/getzola/zola:v0.23.6 AS build
COPY . /project
WORKDIR /project
# The image has no zola on PATH since 0.23 (/bin/zola moved to /zola)
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