Skip to content

Commit 14856a9

Browse files
committed
Update Dockerfile
1 parent a8f7e60 commit 14856a9

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
@@ -10,8 +10,8 @@ COPY TechStacks ./TechStacks
1010
COPY TechStacks.ServiceInterface ./TechStacks.ServiceInterface
1111
COPY TechStacks.ServiceModel ./TechStacks.ServiceModel
1212

13-
# Restore and publish
14-
RUN dotnet restore
13+
# Restore and publish only the API project (avoid solution projects not copied into the image)
14+
RUN dotnet restore TechStacks/TechStacks.csproj
1515
RUN dotnet publish TechStacks/TechStacks.csproj -c Release -o /app/api/publish
1616

1717
# 2. Build Next.js app

0 commit comments

Comments
 (0)