Created
April 16, 2019 18:03
-
-
Save iqan/b536b236ff56e97dec4f172601bc89ae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM microsoft/dotnet:2.2-runtime-stretch-slim AS base | |
| WORKDIR /app | |
| FROM microsoft/dotnet:2.2-sdk-stretch AS build | |
| WORKDIR /src | |
| COPY ["DummyService.App/DummyService.App.csproj", "DummyService.App/"] | |
| RUN dotnet restore "DummyService.App/DummyService.App.csproj" | |
| COPY . . | |
| WORKDIR "/src/DummyService.App" | |
| RUN dotnet build "DummyService.App.csproj" -c Release -o /app | |
| FROM build AS publish | |
| RUN dotnet publish "DummyService.App.csproj" -c Release -o /app | |
| FROM base AS final | |
| WORKDIR /app | |
| COPY --from=publish /app . | |
| ENTRYPOINT ["dotnet", "DummyService.App.dll"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment