Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Multi-stage Dockerfile for checkout service #68

Merged
merged 2 commits into from
Sep 29, 2017
Merged

Multi-stage Dockerfile for checkout service #68

merged 2 commits into from
Sep 29, 2017

Conversation

chlowell
Copy link
Collaborator

@chlowell chlowell commented Sep 28, 2017

The Dockerfile for the checkout service runs dotnet restore then indiscriminately copies the build context. If there are restore assets in the build context, they overwrite those in the prior layer, causing the subsequent publish to fail because they reference paths on the local filesystem.

This change cleans up the Dockerfile with a multi-stage build, solving this problem and producing a leaner final image.

Fixes #67

Copy link
Collaborator

@mjrousos mjrousos left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@mjrousos mjrousos left a comment

Choose a reason for hiding this comment

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

LGTM (and 'approving' this time instead of just 'reviewing' in case such things matter)

@chlowell chlowell merged commit fec3a6a into Glimpse:master Sep 29, 2017
@chlowell chlowell deleted the checkout-dockerfile branch September 29, 2017 18:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants