-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: use a base image for Docker builds
Split the Docker build into three stages: - base image: Node 20 Alpine with the build environment, package files, Yarn and Lerna config. - builder image: bootstraps the project and root apps from the base image. - runner image: installs only production dependencies and runs the built apps from the `builder` image. This is the image that's deployed to Kubernetes. - run the Next.js apps as the `node` user, to secure the apps in production.
- Loading branch information
1 parent
ebfab6f
commit 5fd5a6f
Showing
1 changed file
with
13 additions
and
28 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