some cleanup

This commit is contained in:
2026-08-09 13:51:00 +02:00
parent 99535fe9d9
commit 7e0c60253e
5 changed files with 20 additions and 11 deletions
+1 -5
View File
@@ -8,16 +8,12 @@ RUN npm run build
# Stage 2: .NET Publish
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
RUN apt-get update && apt-get install -y curl && \
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs && \
rm -rf /var/lib/apt/lists/*
WORKDIR /src
COPY *.csproj *.sln ./
RUN dotnet restore
COPY . .
COPY --from=frontend /app/client/build ./client/build
RUN dotnet publish FocusApp.csproj -c Release -o /app/publish --no-restore
RUN dotnet publish FocusApp.csproj -c Release -o /app/publish --no-restore -p:SkipFrontendBuild=true
# Stage 3: Runtime
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS runtime