Skip to content

Fix Dockerfile example in "Deploying" chapter #2898

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

Closed
wants to merge 1 commit into from

Conversation

padenot
Copy link
Contributor

@padenot padenot commented Jan 1, 2025

This now matches the layout of a typical project, instead of erroring out.

This now matches the layout of a typical project, instead of erroring out.
Comment on lines +266 to +267
COPY --from=build /build/stati[c] ./static/
COPY --from=build /build/template[s] ./templates/
Copy link
Member

Choose a reason for hiding this comment

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

Are these changes functional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes and no. They aren't strictly needed and generally if the fix on the previous line is applied, it will work the same, but if the next two lines are applied and not the first, the error message can change, maybe depending on the coreutils version one uses.

I don't feel strongly about this, I thought it was a touch clearer. The first line is the important fix.

Copy link
Collaborator

@the10thWiz the10thWiz left a comment

Choose a reason for hiding this comment

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

I like these changes. Doing a quick test on one of my test projects, it looks like without the trailing slashes, it will silently fail by copying the Rocket.toml to a file called static (which was confusing to debug).

@the10thWiz
Copy link
Collaborator

Merged in 1551b1b

@the10thWiz the10thWiz closed this May 4, 2025
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.

3 participants