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
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy csproj and restore as distinct layers
|
# Copy csproj and restore as distinct layers
|
||||||
# TODO: TODO
|
COPY */*.csproj ./
|
||||||
# COPY */*.csproj ./
|
RUN dotnet restore InternshipSystem.Api.csproj
|
||||||
# RUN ls
|
|
||||||
# RUN dotnet restore InternshipSystem.Api.csproj
|
|
||||||
|
|
||||||
# Copy everything else and build
|
# Copy everything else and build
|
||||||
COPY . ./
|
COPY . ./
|
||||||
@ -15,5 +13,5 @@ RUN dotnet publish -c Release -o out
|
|||||||
# Build runtime image
|
# Build runtime image
|
||||||
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-alpine
|
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-alpine
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build-env /app/out .
|
COPY --from=build-env /app/InternshipSystem.Api/out .
|
||||||
ENTRYPOINT ["dotnet", "./InternshipSystem.Api.dll"]
|
ENTRYPOINT ["dotnet", "./InternshipSystem.Api.dll"]
|
||||||
|
Loading…
Reference in New Issue
Block a user