Fix Dockerfile example in "Deploying" chapter

This now matches the layout of a typical project, instead of erroring out.
This commit is contained in:
Paul Adenot 2025-01-01 18:21:18 +01:00 committed by GitHub
parent 28891e8072
commit 599d5ee17f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -262,9 +262,9 @@ WORKDIR /app
COPY --from=build /build/main ./
## copy runtime assets which may or may not exist
COPY --from=build /build/Rocket.tom[l] ./static
COPY --from=build /build/stati[c] ./static
COPY --from=build /build/template[s] ./templates
COPY --from=build /build/Rocket.tom[l] ./
COPY --from=build /build/stati[c] ./static/
COPY --from=build /build/template[s] ./templates/
## ensure the container listens globally on port 8080
ENV ROCKET_ADDRESS=0.0.0.0