forked from Element-Blazor/Element-Blazor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
17 lines (14 loc) · 645 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM registry.cn-shanghai.aliyuncs.com/wzyuchen/aspnet:3.1-buster-slim AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
FROM registry.cn-shanghai.aliyuncs.com/wzyuchen/sdk:3.1-buster AS build
COPY . .
RUN dotnet restore "src/Samples/Blazui/Blazui.ServerRender/Blazui.ServerRender.csproj"
RUN dotnet build "src/Samples/Blazui/Blazui.ServerRender/Blazui.ServerRender.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "src/Samples/Blazui/Blazui.ServerRender/Blazui.ServerRender.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "Blazui.ServerRender.dll"]