We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8f7e60 commit 14856a9Copy full SHA for 14856a9
1 file changed
Dockerfile
@@ -10,8 +10,8 @@ COPY TechStacks ./TechStacks
10
COPY TechStacks.ServiceInterface ./TechStacks.ServiceInterface
11
COPY TechStacks.ServiceModel ./TechStacks.ServiceModel
12
13
-# Restore and publish
14
-RUN dotnet restore
+# Restore and publish only the API project (avoid solution projects not copied into the image)
+RUN dotnet restore TechStacks/TechStacks.csproj
15
RUN dotnet publish TechStacks/TechStacks.csproj -c Release -o /app/api/publish
16
17
# 2. Build Next.js app
0 commit comments