From 10c690311476b5afb2fde14e7abcb9eda46cf7df Mon Sep 17 00:00:00 2001 From: capdiem Date: Wed, 27 Dec 2023 11:55:40 +0800 Subject: [PATCH] udpate dockerfile --- Masa.Blazor.Pro/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Masa.Blazor.Pro/Dockerfile b/Masa.Blazor.Pro/Dockerfile index 1e6c935..0142fda 100644 --- a/Masa.Blazor.Pro/Dockerfile +++ b/Masa.Blazor.Pro/Dockerfile @@ -1,11 +1,11 @@ #See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. -FROM registry.cn-hangzhou.aliyuncs.com/masa/dotnet_sdk:8.0.100-1 AS base +FROM registry.cn-hangzhou.aliyuncs.com/masa/dotnet_aspnet:8.0-1 AS base WORKDIR /app EXPOSE 80 EXPOSE 443 -FROM registry.cn-hangzhou.aliyuncs.com/masa/dotnet_aspnet:8.0-1 AS build +FROM registry.cn-hangzhou.aliyuncs.com/masa/dotnet_sdk:8.0.100-1 AS build WORKDIR /src COPY ["Masa.Blazor.Pro/Masa.Blazor.Pro.csproj", "Masa.Blazor.Pro/"] RUN dotnet restore "Masa.Blazor.Pro/Masa.Blazor.Pro.csproj" @@ -20,4 +20,3 @@ FROM base AS final WORKDIR /app COPY --from=publish /app/publish . ENTRYPOINT ["dotnet", "Masa.Blazor.Pro.dll"] -y