修改dockerfile
Build and publish packages and Docker images / Test, build and publish (push) Successful in 46m57s

This commit is contained in:
2026-07-24 10:07:23 +08:00 Unverified
parent 849e30a8ad
commit 7aa6133005
+2 -2
View File
@@ -6,7 +6,7 @@ RUN npm ci
COPY src/Eis.Web/ClientApp/ ./ COPY src/Eis.Web/ClientApp/ ./
RUN npm run build RUN npm run build
FROM mcr.microsoft.com/dotnet/sdk:10.0-bookworm-slim AS build FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src WORKDIR /src
COPY . . COPY . .
@@ -16,7 +16,7 @@ RUN dotnet restore src/Eis.Web/Eis.Web.csproj \
&& dotnet publish src/Eis.Web/Eis.Web.csproj --configuration Release --output /app/web --no-restore \ && dotnet publish src/Eis.Web/Eis.Web.csproj --configuration Release --output /app/web --no-restore \
&& dotnet publish src/Eis.Tools/Eis.Tools.csproj --configuration Release --output /app/tools --no-restore && dotnet publish src/Eis.Tools/Eis.Tools.csproj --configuration Release --output /app/tools --no-restore
FROM mcr.microsoft.com/dotnet/aspnet:10.0-bookworm-slim AS runtime FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS runtime
WORKDIR /app WORKDIR /app
RUN apt-get update \ RUN apt-get update \