Skip to content

Commit a1f280c

Browse files
committed
Fix Dockerfile: set RepoRoot for dotnet build to work
1 parent 55d343b commit a1f280c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ ARG BUILD_CONFIGURATION=Release
1717

1818
COPY . /src/
1919
WORKDIR "/src/service/Service"
20-
RUN dotnet build Service.csproj -c $BUILD_CONFIGURATION -o /app/build
21-
RUN dotnet publish "./Service.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
20+
RUN dotnet build Service.csproj -c $BUILD_CONFIGURATION -o /app/build /p:RepoRoot=/src/
21+
RUN dotnet publish "./Service.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false /p:RepoRoot=/src/
2222

2323
#########################################################################
2424
# prepare final content

0 commit comments

Comments
 (0)