-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Optimize Docker image, build for amd64+arm64
The image size is reduced by 13% using the following measures: * Extended .dockerignore to remove further metadata and tests. This also ensures better layer caching for repeat builds. * Cleaning npm cache for the final stage. Inline source maps are enabled to improve error reporting. Stack traces will now refer to the TypeScript source locations instead of transpiled JS. Multiplatform build for arm64 in addition to amd64 is enabled to improve performance on ARM devices due to not needing emulation. Finally, the `docker run` example in README.md is amended to include security best practices.
- Loading branch information
Showing
8 changed files
with
41 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 |
---|---|---|
@@ -1,19 +1,35 @@ | ||
# Default ignored files | ||
.env | ||
.idea | ||
node_modules/ | ||
renovate.json | ||
.github | ||
README.md | ||
**/.DS_Store | ||
**/.env | ||
**/node_modules | ||
|
||
.gitignore | ||
.gitattributes | ||
.github | ||
.idea | ||
.vscode | ||
|
||
README.md | ||
CHANGELOG.md | ||
|
||
renovate.json | ||
.release-please-manifest.json | ||
release-please-config.json | ||
|
||
.dockerignore | ||
Dockerfile | ||
|
||
# build folders and files | ||
/dist | ||
**/dist | ||
.nyc_output | ||
/tmp | ||
/coverage | ||
/junit.xml | ||
|
||
# test folders and files | ||
/test | ||
/integration | ||
/backend/test | ||
|
||
# configuration | ||
/config |
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
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