From abaac3051d21d7aba089452fe1790808802a09e3 Mon Sep 17 00:00:00 2001 From: Xander Sigler Date: Wed, 26 Jan 2022 23:01:16 -0800 Subject: [PATCH] Fixed dockerfile to copy the correct directory to the build file --- AOC2021/AOC2021.csproj | 8 -------- AOC2021/Dockerfile | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/AOC2021/AOC2021.csproj b/AOC2021/AOC2021.csproj index 1afa50b..c5187a0 100644 --- a/AOC2021/AOC2021.csproj +++ b/AOC2021/AOC2021.csproj @@ -3,17 +3,9 @@ net5.0 AnyCPU;x64 - false false - - - - - - - diff --git a/AOC2021/Dockerfile b/AOC2021/Dockerfile index a226516..04ec187 100644 --- a/AOC2021/Dockerfile +++ b/AOC2021/Dockerfile @@ -5,7 +5,7 @@ FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build WORKDIR /src COPY ["AOC2021/AOC2021.csproj", "AOC2021/"] RUN dotnet restore "AOC2021/AOC2021.csproj" -COPY [".", "AOC2021/."] +COPY ["AOC2021/", "AOC2021/."] WORKDIR "/src/AOC2021" RUN dotnet build "AOC2021.csproj" -c Release -o /app/build