Skip to content
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

Merged
merged 2 commits into from
Oct 21, 2023

Conversation

oleastre
Copy link
Contributor

@oleastre oleastre commented Oct 11, 2023

Sanity check:

  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

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.

FROM ghcr.io/static-web-server/static-web-server:2
WORKDIR /
COPY --from=zola /project/public /public
```
Copy link
Collaborator

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

Copy link
Contributor Author

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.

Copy link
Collaborator

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?

Copy link
Collaborator

@Keats Keats left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@Keats Keats merged commit 0b46736 into getzola:master Oct 21, 2023
5 checks passed
selfisekai pushed a commit to selfisekai/zola that referenced this pull request Nov 3, 2023
* Add multi-stage dockerfile build example

* Simplify install instructions, add docker image deployment example
Newbytee pushed a commit to Newbytee/zola that referenced this pull request Dec 19, 2023
* Add multi-stage dockerfile build example

* Simplify install instructions, add docker image deployment example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants