File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ COPY TechStacks.ServiceModel ./TechStacks.ServiceModel
1212
1313# Restore and publish only the API project (avoid solution projects not copied into the image)
1414RUN dotnet restore TechStacks/TechStacks.csproj
15- RUN dotnet publish TechStacks/TechStacks.csproj -c Release -o /app/api/publish
15+ RUN dotnet publish TechStacks/TechStacks.csproj -c Release --no-restore
1616
1717# 2. Build Next.js app
1818FROM node:20-alpine AS next-build
@@ -38,7 +38,7 @@ RUN apt-get update \
3838 && rm -rf /var/lib/apt/lists/*
3939
4040# Copy published .NET app
41- COPY --from=dotnet-build /app/api /publish ./api
41+ COPY --from=dotnet-build /src/TechStacks/bin/Release/net10.0 /publish ./api
4242
4343# Copy built Next.js app (including .next, node_modules, public, etc.)
4444COPY --from=next-build /app/client ./client
You can’t perform that action at this time.
0 commit comments