mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-18 16:03:36 +03:00
change: add default value to PUBLISH_OPTIONS Dockerfile arg
This commit is contained in:
parent
d9eb9ff663
commit
efb3256282
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue