IntershipController changes #15

Closed
Zonar wants to merge 2 commits from AddMentor into master
Showing only changes of commit cdcfaa530d - Show all commits

View File

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