1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-04-19 16:33:36 +03:00

update dockerfile

did you know that you can just enter project folder without csproj thing

Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
Macintxsh 2024-10-25 13:39:03 +03:00
parent c540a63c6f
commit ef26ae6a55
Signed by: mctaylors
GPG key ID: 4EEF4F949A266EE2

View file

@ -6,7 +6,7 @@ COPY . ./
# Load build argument with publish options # Load build argument with publish options
ARG PUBLISH_OPTIONS="-c Release" ARG PUBLISH_OPTIONS="-c Release"
# Build and publish a release # Build and publish a release
RUN dotnet publish ./TeamOctolings.Octobot/TeamOctolings.Octobot.csproj $PUBLISH_OPTIONS -o out RUN dotnet publish ./TeamOctolings.Octobot $PUBLISH_OPTIONS -o out
# Build runtime image # Build runtime image
FROM mcr.microsoft.com/dotnet/runtime:8.0@sha256:a335dccd3231f7f9e2122691b21c634f96e187d3840c8b7dbad61ee09500e408 FROM mcr.microsoft.com/dotnet/runtime:8.0@sha256:a335dccd3231f7f9e2122691b21c634f96e187d3840c8b7dbad61ee09500e408