Skip to content

Update docker image to leverage output traces#32258

Merged
kodiakhq[bot] merged 3 commits intovercel:canaryfrom
ijjk:update/docker-example
Dec 13, 2021
Merged

Update docker image to leverage output traces#32258
kodiakhq[bot] merged 3 commits intovercel:canaryfrom
ijjk:update/docker-example

Conversation

@ijjk
Copy link
Copy Markdown
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 was opened via the examples template. 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
Comment thread examples/with-docker/Dockerfile
@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
@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 was opened via the examples template.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants