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

[CPSRE-1342] Refactored Dockerfile #4386

Closed
wants to merge 1 commit into from

Conversation

dkolkena
Copy link
Contributor

@dkolkena dkolkena commented Nov 3, 2023

What does this PR do?

By leveraging a multi-stage build within the Dockerfile, we can add additional build tools (to support a future arm64 or multiarch build) while still achieving a smaller final image size:

Arch Dockerfile Build time Compressed size Size on disk
x86_64 Single-stage ~20 minutes 659 MB 2.39 GB
x86_64 Multi-stage ~20 minutes 450 MB 1.44 GB

These changes will impact:

  • commenters
  • moderators
  • admins
  • developers

What changes to the GraphQL/Database Schema does this PR introduce?

N/A

Does this PR introduce any new environment variables or feature flags?

Nope

If any indexes were added, were they added to INDEXES.md?

N/A

How do I test this PR?

Pull the changes and build from source as normal. Compare the final image size to the current develop default.

Where any tests migrated to React Testing Library?

No

How do we deploy this PR?

No additional considerations are necessary.

Copy link

netlify bot commented Nov 3, 2023

Deploy Preview for gallant-galileo-14878c canceled.

Name Link
🔨 Latest commit 6289713
🔍 Latest deploy log https://app.netlify.com/sites/gallant-galileo-14878c/deploys/6545347cfa0cd700083a4c2a

@dkolkena dkolkena requested review from nick-funk and kabeaty November 3, 2023 18:18
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.

4 participants