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"]