We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.140.2-onbuild
When starting a Docker image built with Cloud Build on Cloud Run, the nginx start screen is displayed.
The issue can also be reproduced on macOS (Sequoia) by setting DOCKER_BUILDKIT=0.
DOCKER_BUILDKIT=0
Dockerfile:
FROM floryn90/hugo:0.140.2-onbuild AS hugo FROM nginx COPY --from=hugo /target /usr/share/nginx/html
The HTML files that Hugo generates are not copied to /usr/share/nginx/html.
/usr/share/nginx/html
# Build the Docker image in Hugo project $ DOCKER_BUILDKIT=0 docker build . -t masutaka/hugo:0.140.2-onbuild $ docker run --rm --entrypoint sh -it masutaka/hugo:0.140.2-onbuild $ ls -alF /usr/share/nginx/html total 16 drwxr-xr-x 1 root root 4096 Jan 5 10:39 ./ drwxr-xr-x 1 root root 4096 Dec 24 23:02 ../ -rw-r--r-- 1 root root 497 Nov 26 15:55 50x.html -rw-r--r-- 1 root root 615 Nov 26 15:55 index.html
0.138.0-onbuild
0.140.1-onbuild
It seems the fix for the permission error I pointed out in #194 was incomplete.
The text was updated successfully, but these errors were encountered:
hi @masutaka,
You have to use DOCKER_BUILDKIT=1 if you want to use the Docker's multi-stage builds: https://docs.docker.com/build/building/multi-stage/
Closing the issue since it's not related to the Hugo's image
Sorry, something went wrong.
I see. Why was multi-stage build enabled in Cloud Build up until 0.138.0-onbuild, but disabled in 0.140.2-onbuild? I'll look into it. Thank you.
No branches or pull requests
Describe the bug
When starting a Docker image built with Cloud Build on Cloud Run, the nginx start screen is displayed.
To Reproduce
The issue can also be reproduced on macOS (Sequoia) by setting
DOCKER_BUILDKIT=0
.Dockerfile:
The HTML files that Hugo generates are not copied to
/usr/share/nginx/html
.0.138.0-onbuild
.0.140.1-onbuild
and0.140.2-onbuild
.Additional context
It seems the fix for the permission error I pointed out in #194 was incomplete.
The text was updated successfully, but these errors were encountered: