Update Dockerfile to a functional multistage build#389
Open
danfmsouza wants to merge 3 commits into
Open
Conversation
…and optimizes Dockerfile.
|
should also fix gateway issues, at least for me i had them before going for Entrypoint with []... took me way too long |
Author
Thanks! I’ll check it out. I made those changes just to simplify deployment in a test pipeline I was using, so yeah, it probably needs some tweaks to be in good shape. I’ll also build on what @ShinySaana Saana did in another PR and clean this up here too! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 Dockerfile Optimization: Key Changes and Improvements
The latest updates to the
Dockerfileintroduced several significant enhancements. Below is a breakdown of the key changes and their benefits.🌍 Global Variables (ARG)
⚡ Build Optimization
node:14-slimas the base image to reduce image size.🔒 Security Enhancements
mt) for improved security.🏗️ Code Structure Improvements
Dockerfile Enhancements
npm ci --omit=devfor faster and cleaner dependency installations.⚙️ Runtime Environment Improvements
These optimizations make the Docker image lighter, more efficient, and more secure, ensuring faster builds and a better deployment experience. 🚀