Skip to content

Commit 232c956

Browse files
committed
Fix Sonar warning about Dockerfile
1 parent b8e7319 commit 232c956

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WebApi/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ COPY ["src/", "./"]
1111
RUN dotnet restore "WebApi/WebApi.csproj"
1212
COPY . .
1313
WORKDIR "/src/WebApi"
14-
RUN dotnet build "WebApi.csproj" -c $BUILD_CONFIGURATION -o /app/build
14+
RUN dotnet build "WebApi.csproj" -c "$BUILD_CONFIGURATION" -o /app/build
1515

1616
FROM build AS publish
1717
ARG BUILD_CONFIGURATION=Release
18-
RUN dotnet publish "WebApi.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
18+
RUN dotnet publish "WebApi.csproj" -c "$BUILD_CONFIGURATION" -o /app/publish /p:UseAppHost=false
1919

2020
FROM base AS final
2121
WORKDIR /app

0 commit comments

Comments
 (0)