From a71c0aa2b4ee4e01acc85b9c1fdba5000381cd0e Mon Sep 17 00:00:00 2001 From: mctaylors Date: Fri, 25 Oct 2024 13:21:58 +0300 Subject: [PATCH] fix dockerfile why the fuck we should double restore Signed-off-by: mctaylors --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9c1803e..4929b53 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,12 +3,10 @@ WORKDIR /Octobot # Copy everything COPY . ./ -# Restore as distinct layers -RUN dotnet restore # Load build argument with publish options ARG PUBLISH_OPTIONS="-c Release" # Build and publish a release -RUN dotnet publish ./TeamOctolings.Octobot.csproj $PUBLISH_OPTIONS -o out +RUN dotnet publish ./TeamOctolings.Octobot/TeamOctolings.Octobot.csproj $PUBLISH_OPTIONS -o out # Build runtime image FROM mcr.microsoft.com/dotnet/runtime:8.0@sha256:a335dccd3231f7f9e2122691b21c634f96e187d3840c8b7dbad61ee09500e408