初次切换前端架构
This commit is contained in:
1 parent
4780ca88d0
commit
6fd468d9e0
19 files changed
+2507
-6
No files matched your search
@@ -11,6 +11,8 @@ tests
|
||||
data/*
|
||||
!data/.gitkeep
|
||||
|
||||
**/node_modules
|
||||
|
||||
*.log
|
||||
Dockerfile*
|
||||
compose*.yml
|
||||
|
||||
@@ -8,3 +8,4 @@ data/*.sqlite-wal
|
||||
**/obj/
|
||||
.vs/
|
||||
artifacts/
|
||||
**/node_modules/
|
||||
@@ -1,7 +1,16 @@
|
||||
FROM node:24-bookworm-slim AS frontend-build
|
||||
|
||||
WORKDIR /src/src/Eis.Web/ClientApp
|
||||
COPY src/Eis.Web/ClientApp/package.json src/Eis.Web/ClientApp/package-lock.json ./
|
||||
RUN npm ci
|
||||
COPY src/Eis.Web/ClientApp/ ./
|
||||
RUN npm run build
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:10.0-bookworm-slim AS build
|
||||
|
||||
WORKDIR /src
|
||||
COPY . .
|
||||
COPY --from=frontend-build /src/src/Eis.Web/wwwroot/vue-app ./src/Eis.Web/wwwroot/vue-app
|
||||
RUN dotnet restore src/Eis.Web/Eis.Web.csproj \
|
||||
&& dotnet restore src/Eis.Tools/Eis.Tools.csproj \
|
||||
&& dotnet publish src/Eis.Web/Eis.Web.csproj --configuration Release --output /app/web --no-restore \
|
||||
|
||||
Loaded 3 of 19 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user