From cdcfaa530d6e12d77890b656f5ad6dea2c39e2ef Mon Sep 17 00:00:00 2001 From: mborzyszkowski Date: Thu, 9 Jul 2020 18:44:38 +0200 Subject: [PATCH] Wandering in the solution --- src/InternshipSystem.Api/Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/InternshipSystem.Api/Dockerfile b/src/InternshipSystem.Api/Dockerfile index 044160f..89e7df8 100644 --- a/src/InternshipSystem.Api/Dockerfile +++ b/src/InternshipSystem.Api/Dockerfile @@ -2,10 +2,8 @@ FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine AS build-env WORKDIR /app # Copy csproj and restore as distinct layers -# TODO: TODO -# COPY */*.csproj ./ -# RUN ls -# RUN dotnet restore InternshipSystem.Api.csproj +COPY */*.csproj ./ +RUN dotnet restore InternshipSystem.Api.csproj # Copy everything else and build COPY . ./ @@ -15,5 +13,5 @@ RUN dotnet publish -c Release -o out # Build runtime image FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-alpine WORKDIR /app -COPY --from=build-env /app/out . +COPY --from=build-env /app/InternshipSystem.Api/out . ENTRYPOINT ["dotnet", "./InternshipSystem.Api.dll"]