Skip to content

Commit

Permalink
Use DOCKER constant in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
KarmaKamikaze committed Sep 25, 2024
1 parent 2dc9689 commit e068187
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MoxfieldPriceScraper/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ COPY *.csproj ./
RUN DOTNET_EnableWriteXorExecute=0 dotnet restore

COPY . ./
RUN DOTNET_EnableWriteXorExecute=0 dotnet publish -c $BUILD_CONFIGURATION -o out --no-restore
RUN DOTNET_EnableWriteXorExecute=0 dotnet publish -c $BUILD_CONFIGURATION -o out --no-restore -p:DOCKER_BUILD=true

FROM mcr.microsoft.com/dotnet/runtime:8.0 AS runtime
WORKDIR /app
Expand Down

0 comments on commit e068187

Please sign in to comment.