zola is not in $PATH in the docker image
Author: coryalderCreated Sep 27, 2026Updated Sep 27, 2026
Bug Report
This does NOT work:
FROM ghcr.io/getzola/zola:v0.23.6 AS zola
COPY . /project
WORKDIR /projectl
RUN ["zola", "build"]This does work:
FROM ghcr.io/getzola/zola:v0.23.6 AS zola
COPY . /project
WORKDIR /projectl
RUN ["/zola", "build"]Error for the first command:
#26 0.144 runc run failed: unable to start container process: error during container init: exec: "zola": executable file not found in $PATH
#26 ERROR: process "zola build" did not complete successfully: exit code: 1So, this is either something to fix in the docker image, or something to fix in the documentation :)
Environment
Zola version: 0.23.6
Evidence it's not just my setup? others are using the leading / https://github.com/michaelburch/michaelburchdotnet/blob/4c4363e600993fbdf5c27c71b8d3f89b4dd96f69/Dockerfile#L5
Source: getzola/zola