Skip to content

Commit 829f424

Browse files
committed
Update Dockerfile
1 parent e6e0e9a commit 829f424

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ 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 --no-restore
15+
# Disable .NET's built-in containerization (PublishProfile=DefaultContainer) inside Docker
16+
RUN dotnet publish TechStacks/TechStacks.csproj -c Release --no-restore -p:PublishProfile=
1617

1718
# 2. Build Next.js app
1819
FROM node:20-alpine AS next-build

0 commit comments

Comments
 (0)