Wandering in the solution
This commit is contained in:
parent
66870cf7cd
commit
cdcfaa530d
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user