Skip to content

Commit

Permalink
chore: update dockerfile (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
wzh425 authored Dec 10, 2024
1 parent 014dcec commit 1e595f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Web/Masa.Alert.Web.Admin.Server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM registry.cn-hangzhou.aliyuncs.com/masa/dotnet_sdk:6.0.403 AS publish
FROM registry.cn-hangzhou.aliyuncs.com/masa/sdk:8.0.203 AS publish
WORKDIR /src
COPY . .
ENV CSPROJ="src/Web/Masa.Alert.Web.Admin.Server/Masa.Alert.Web.Admin.Server.csproj"
RUN dotnet restore $CSPROJ && dotnet publish $CSPROJ -c Release -o /app/publish


FROM registry.cn-hangzhou.aliyuncs.com/masa/dotnet_aspnet:6.0.4
FROM registry.cn-hangzhou.aliyuncs.com/masa/dotnet_aspnet:8.0.3
WORKDIR /app
COPY --from=publish /app/publish .
COPY ["src/Web/Masa.Alert.Web.Admin/wwwroot/i18n","wwwroot/i18n"]
Expand Down

0 comments on commit 1e595f8

Please sign in to comment.