-
Notifications
You must be signed in to change notification settings - Fork 3
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
Build multi-platform docker image on every PR #379
Conversation
Quality Gate passedIssues Measures |
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.
LGTM , but the CI build is failing
|
||
# production environment | ||
FROM nginxinc/nginx-unprivileged:1.27.2-alpine3.20 | ||
COPY --from=build /packages/pxweb2/dist /usr/share/nginx/html | ||
COPY --from=build /app/packages/pxweb2/dist /usr/share/nginx/html |
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.
This should be wrong, is the build step building to the wrong location perhaps? It should not be necessary to add /app/ here 🤔
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.
It was failing on COPY, but it could also be fixed like this, without leading slash
COPY --from=build packages/pxweb2/dist /usr/share/nginx/html
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.
It should be correct the code is placed in /app.
When is test localy the build does not fail.
Yes, it was why I made this PR |
No description provided.