-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (17 loc) · 722 Bytes
/
Dockerfile
File metadata and controls
19 lines (17 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Create an image for the Recipieces website
FROM mcr.microsoft.com/dotnet/core/aspnet:3.0 AS runtime
FROM mcr.microsoft.com/dotnet/core/aspnet:3.0 AS base
WORKDIR /app
ENV ASPNETCORE_URLS http://+:80
EXPOSE 80
FROM mcr.microsoft.com/dotnet/core/sdk:3.0 AS publish
WORKDIR /src
COPY ./RecipiecesWeb ./RecipiecesWeb
COPY ./RecipeUIClassLib ./RecipeUIClassLib
RUN dotnet restore ./RecipeUIClassLib/RecipeUIClassLib.csproj /ignoreprojectextensions:.dcproj
RUN dotnet restore ./RecipiecesWeb/RecipiecesWeb.csproj /ignoreprojectextensions:.dcproj
RUN dotnet publish ./RecipiecesWeb/RecipiecesWeb.csproj -c Release -o /app
FROM base AS final
WORKDIR /app
COPY --from=publish /app ./
ENTRYPOINT ["dotnet", "RecipiecesWeb.dll"]