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

.NET Core Docker Samples now use Multi-Stage Build #18

kendrahavens opened this issue Jun 30, 2017 · 1 comment

.NET Core Docker Samples now use Multi-Stage Build #18

kendrahavens opened this issue Jun 30, 2017 · 1 comment


Copy link

@kendrahavens kendrahavens commented Jun 30, 2017

.NET Core Docker Samples now use Multi-Stage Build


.NET Core Docker images can now use multi-stage build using a new feature from Docker that allows multiple FROM lines to be used in one Dockerfile. The multi-stage build feature was recently introduced into the Docker client Stable channel. Using this feature, you can build a .NET Core app in an SDK image (AKA 'build image') and then copy the published app into a runtime image all in the same Dockerfile. To see an example of this in practice, check out the .NET Docker Samples Repo.



Before the multi-stage build feature was added, a script was required to copy the published output of your build container onto your disk and then the runtime container would read in that output. This was tedious to implement and not super efficient. Now, containers can share build artifacts from different stages within a single Dockerfile.

@dotnet dotnet locked and limited conversation to collaborators Jun 30, 2017
@richlander richlander added Docker and removed Announcement labels Jul 18, 2017
@terrajobst terrajobst closed this Nov 8, 2017
Copy link

@terrajobst terrajobst commented Nov 10, 2017

Reopening according to process.

@terrajobst terrajobst reopened this Nov 10, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.