Dockerfile: call zola by its path in the 0.23 image
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

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
This commit is contained in:
Sergei Poljanski 2026-11-13 02:06:46 +04:00
commit 2f1cc8184a
Signed by: asxpi
GPG key ID: 4F8851660FA4121B

View file

@ -1,9 +1,10 @@
# Zola publishes no :latest tag; bump the pin manually (flake.nix tracks nixpkgs separately).
# 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
RUN ["zola", "build"]
# The image has no zola on PATH since 0.23 (/bin/zola moved to /zola)
RUN ["/zola", "build"]
FROM nginx:1.28-alpine