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

Move npm run build as part of docker build #129

Merged
merged 6 commits into from
Dec 9, 2024

Conversation

AlexAxthelm
Copy link
Contributor

@AlexAxthelm AlexAxthelm commented Dec 5, 2024

Run npm run build in docker image to generate built dashboard files in docker image (making them available for COPY --from in other images)

Closes #128

Supports RMI-PACTA/workflow.pacta.dashboard#33

Copy link

github-actions bot commented Dec 5, 2024

Docker build status

commit_time git_sha image
2024-12-09T16:40:03Z d509d03 ghcr.io/rmi-pacta/pacta-dashboard-svelte:pr-129

Copy link

github-actions bot commented Dec 6, 2024

PR Preview Action v1.4.8
Preview removed because the pull request was closed.
2024-12-09 16:43 UTC

@AlexAxthelm AlexAxthelm requested a review from jdhoffa December 9, 2024 15:43
scripts/build.sh Outdated
Copy link
Member

Choose a reason for hiding this comment

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

I guess we should probably also rename this script, since it doesn't build at all anymore?

Since it's a single line, I would just remove the script altogether, and call the cp command in-line in the Dockerfile

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense. d509d03

Copy link
Member

@jdhoffa jdhoffa left a comment

Choose a reason for hiding this comment

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

lgtm!

@AlexAxthelm AlexAxthelm merged commit 0c1285c into main Dec 9, 2024
11 checks passed
@AlexAxthelm AlexAxthelm deleted the build/128-build-in-image branch December 9, 2024 16:42
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.

Build app in image
2 participants