Skip to content

Commit e6e0e9a

Browse files
committed
Update Dockerfile
1 parent 14856a9 commit e6e0e9a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)
1414
RUN 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
1818
FROM 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.)
4444
COPY --from=next-build /app/client ./client

0 commit comments

Comments
 (0)