From efb3256282d3c574f792e66cb9da6c4d1efd3049 Mon Sep 17 00:00:00 2001 From: Octol1ttle Date: Fri, 25 Oct 2024 14:32:51 +0500 Subject: [PATCH] change: add default value to PUBLISH_OPTIONS Dockerfile arg --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 680d5c8..e1d55ba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,9 +6,9 @@ COPY . ./ # Restore as distinct layers RUN dotnet restore # Load build argument with publish options -ARG PUBLISH_OPTIONS +ARG PUBLISH_OPTIONS=-c Release # Build and publish a release -RUN dotnet publish ./TeamOctolings.Octobot.csproj $OPTIONS -o out +RUN dotnet publish ./TeamOctolings.Octobot.csproj $PUBLISH_OPTIONS -o out # Build runtime image FROM mcr.microsoft.com/dotnet/runtime:8.0@sha256:a335dccd3231f7f9e2122691b21c634f96e187d3840c8b7dbad61ee09500e408