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

Container image using static-web-server #1249

Merged
merged 5 commits into from
Sep 22, 2024
Merged

Container image using static-web-server #1249

merged 5 commits into from
Sep 22, 2024

Conversation

jennydaman
Copy link
Collaborator

@jennydaman jennydaman commented Sep 22, 2024

  • "Production" container image uses static-web-server instead of sirv for performance, minimal image size, and feature.
    • Image size reduced from 197MB to 31.6MB.
    • ARM64 and others now supported.
  • The way we build the container image is overhauled. First, we run pnpm build on-the-metal, and the dist folder is copied into a container. The work done during docker build is minimized, so multi-architectural builds using QEMU are fast.
  • Using docker/metadata-action and building images for every PR to either master or staging.
  • docker-entrypoint.sh was rewritten to work as a non-root user.
  • Documentation: https://chrisproject.org/docs/run/chris_ui

@jennydaman jennydaman merged commit 7054639 into staging Sep 22, 2024
4 checks passed
@jennydaman jennydaman deleted the docker branch September 22, 2024 04:31
jennydaman added a commit to jennydaman/ChRIS_ui that referenced this pull request Sep 22, 2024
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.

1 participant