Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Save the bytes! Also make builds without cached layers faster. And images lighter to move around. Basic stuff like: - using slim image - adding node_modules to .dockerignore Some aditional changes due to: - New slim debian image (bookworm) no longer bundles libssl, so it has to be install explicitly as prisma depends on it. See: nodejs/docker-node#1919 - Bookworm uses different version of libssl 3.0.x rather than 1.1.x which necesatates update to prisma schema. - Prisma client itself has to be updated to support libssl 3.0.x. Question: Should we pin the OS version to avoid such surprises in the future? PRO: Consistent OS experience. CON: OS version has to be bumped manually on new release. Resources - Some recommendations regarding images: https://snyk.io/blog/choosing-the-best-node-js-docker-image/ - Why dockerignore: https://codefresh.io/blog/not-ignore-dockerignore-2/ New image size: 648MB Original image size: 1.62GB
- Loading branch information
1 parent
3fde88b
commit 03850f7
Showing
5 changed files
with
17 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
.git | ||
dist |
This file contains 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
This file contains 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
This file contains 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
This file contains 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