CodeLiturgy.Dashboard/CodeLiturgy.Views/Dockerfile

21 lines
607 B
Docker
Raw Normal View History

2022-09-19 05:50:15 +03:00
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
2022-10-30 19:52:18 +03:00
COPY ["CodeLiturgy.Views/CodeLiturgy.Views.csproj", "CodeLiturgy.Views/"]
RUN dotnet restore "CodeLiturgy.Views/CodeLiturgy.Views.csproj"
2022-09-19 05:50:15 +03:00
COPY . .
2022-10-30 19:52:18 +03:00
WORKDIR "/src/CodeLiturgy.Views"
RUN dotnet build "CodeLiturgy.Views.csproj" -c Release -o /app/build
2022-09-19 05:50:15 +03:00
FROM build AS publish
2022-10-30 19:52:18 +03:00
RUN dotnet publish "CodeLiturgy.Views.csproj" -c Release -o /app/publish
2022-09-19 05:50:15 +03:00
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
2022-10-30 19:52:18 +03:00
ENTRYPOINT ["dotnet", "CodeLiturgy.Views.dll"]