Optimize Dockerfile to reduce image size#206
Merged
Conversation
|
Someone is attempting to deploy a commit to a Personal Account owned by @djyde on Vercel. @djyde first needs to authorize it. |
Contributor
Author
Contributor
Author
|
I've added a workflow on GitHub action which will run on every PR, it will try to build the image and use trivy to scan the newly built image for security issues and then comment on PR. |
Owner
|
nice work! |
Owner
|
Could you please make a new PR that target the main branch? |
Contributor
Author
|
OK, so what's happening in #210? |
Contributor
Author
|
I've created PR at: #211 |
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.

This PR changes the
Dockerfilefor this project, introduces three changes:node:15.14.0-alpine3.10tonode:16-alpine3.15 as builder, similar to PR: Bump node base image version to 16.13.0. #161npx browserslist@latest --update-dbwhen buildingHowever, there are still some security issues with the new image that needs to be fixed: