Created
May 13, 2019 10:30
-
-
Save SumindaD/7f31c6e2e8346afeb40963e7557ab23d 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.1-aspnetcore-runtime AS base | |
WORKDIR /app | |
EXPOSE 80 | |
FROM microsoft/dotnet:2.1-sdk AS build | |
WORKDIR /src | |
COPY ["CatalogAPI/CatalogAPI.csproj", "CatalogAPI/"] | |
RUN dotnet restore "CatalogAPI/CatalogAPI.csproj" | |
COPY . . | |
WORKDIR "/src/CatalogAPI" | |
RUN dotnet build "CatalogAPI.csproj" -c Release -o /app | |
FROM build AS publish | |
RUN dotnet publish "CatalogAPI.csproj" -c Release -o /app | |
FROM base AS final | |
WORKDIR /app | |
COPY --from=publish /app . | |
ENTRYPOINT ["dotnet", "CatalogAPI.dll"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment