Skip to content

Use multi-stage build for dockerfile#107

Merged
zhouzhuojie merged 1 commit into
masterfrom
zz/change-docker-base
Apr 4, 2018
Merged

Use multi-stage build for dockerfile#107
zhouzhuojie merged 1 commit into
masterfrom
zz/change-docker-base

Conversation

@zhouzhuojie
Copy link
Copy Markdown
Collaborator

Use multi-stage build. Requires docker 17.09+.

The image size is down to 40mb.

@zhouzhuojie zhouzhuojie requested a review from a team April 4, 2018 18:07
Copy link
Copy Markdown

@ziru ziru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup. avoid including build dependencies in the docker image. we only need runtime dependencies in the final image.

@zhouzhuojie zhouzhuojie merged commit 459f44c into master Apr 4, 2018
@zhouzhuojie zhouzhuojie deleted the zz/change-docker-base branch April 4, 2018 18:55
@sks sks mentioned this pull request Nov 3, 2023
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants