-
Notifications
You must be signed in to change notification settings - Fork 983
New issue
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
Add multi-stage dockerfile build example #2327
Conversation
FROM ghcr.io/static-web-server/static-web-server:2 | ||
WORKDIR / | ||
COPY --from=zola /project/public /public | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That part should not be in the installation doc, it's running the output side in a docker container
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I just remove that part ?
Or do you think there is a better place in the documentation where to put the whole example ?
Cutting the Dockerfile just after the build is possible, but the resulting image is a bit useless in itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe put it in the deploy section?
79a2676
to
2b0a10d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
* Add multi-stage dockerfile build example * Simplify install instructions, add docker image deployment example
* Add multi-stage dockerfile build example * Simplify install instructions, add docker image deployment example
Sanity check:
This is a simple documentation improvement proposal to add an example how to use the zola docker image in a multi stage build.
This should answers questions like #1319 and avoid workaround like creating derived docker images.