Skip to content

Commit

Permalink
Fix Dockerfile: set RepoRoot for dotnet build to work
Browse files Browse the repository at this point in the history
  • Loading branch information
dluc committed May 15, 2024
1 parent 55d343b commit a1f280c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ ARG BUILD_CONFIGURATION=Release

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

#########################################################################
# prepare final content
Expand Down

0 comments on commit a1f280c

Please sign in to comment.