Skip to content
This repository has been archived by the owner on Aug 14, 2022. It is now read-only.

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dscpinheiro authored Dec 5, 2019
1 parent f712c66 commit f2cb8ae
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@ FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine AS builder
WORKDIR /src

# Copy csproj and restore as distinct layers
COPY Messages.Helpers/*.csproj ./Messages.Helpers/
COPY Messages.Api/*.csproj ./Messages.Api/

WORKDIR /src/Messages.Api
RUN dotnet restore

# Copy everything else and publish artifacts
COPY Messages.Api/. .
COPY Messages.Helpers/. /src/Messages.Helpers/
COPY Messages.Api/. /src/Messages.Api/

WORKDIR /src/Messages.Api
RUN dotnet publish --configuration Release --output artifacts

# Build runtime image
Expand Down

0 comments on commit f2cb8ae

Please sign in to comment.