Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docker image to leverage output traces #32258

Merged
merged 3 commits into from Dec 13, 2021

Conversation

ijjk
Copy link
Member

@ijjk ijjk commented Dec 7, 2021

This updates our docker example to leverage the output traces and standalone build to reduce the resulting docker image quite a bit.

docker image size before: 272MB
docker image size after: 121MB
node-14:alpine size (base image): 118MB

Documentation / Examples

  • Make sure the linting passes by running yarn lint

x-ref: #32255
x-ref: #32252
x-ref: #30822

@ijjk ijjk added examples Issue/PR related to examples created-by: Next.js team PRs by the Next.js team labels Dec 7, 2021
@ijjk ijjk marked this pull request as ready for review December 7, 2021 21:29
@kodiakhq kodiakhq bot merged commit ca8fd31 into vercel:canary Dec 13, 2021
@ijjk ijjk deleted the update/docker-example branch December 13, 2021 16:32
cdierkens pushed a commit to cdierkens/next.js that referenced this pull request Dec 20, 2021
This updates our docker example to leverage the output traces and standalone build to reduce the resulting docker image quite a bit. 

docker image size before: `272MB`
docker image size after: `121MB`
node-14:alpine size (base image): `118MB`

## Documentation / Examples

- [x] Make sure the linting passes by running `yarn lint`

x-ref: vercel#32255
x-ref: vercel#32252
x-ref: vercel#30822
@vercel vercel locked as resolved and limited conversation to collaborators Jan 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
created-by: Next.js team PRs by the Next.js team examples Issue/PR related to examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants