From 9c7d7ae182780d70793efe1ef2012ee0eae9f242 Mon Sep 17 00:00:00 2001 From: Antoine Jourdain Date: Mon, 1 Apr 2024 13:36:34 +0200 Subject: [PATCH] =?UTF-8?q?br=C3=BBle=20docker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Project/EntityFramework/API/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Project/EntityFramework/API/Dockerfile b/Project/EntityFramework/API/Dockerfile index 805b7e8..5b9dbba 100644 --- a/Project/EntityFramework/API/Dockerfile +++ b/Project/EntityFramework/API/Dockerfile @@ -9,6 +9,7 @@ EXPOSE 8081 FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build ARG BUILD_CONFIGURATION=Release WORKDIR /src +RUN ls COPY ["API/API.csproj", "API/"] COPY ["DTOToEntity/DTOToEntity.csproj", "DTOToEntity/"] COPY ["DbContext/DbContextLib.csproj", "DbContext/"] @@ -18,6 +19,7 @@ COPY ["StubbedContext/StubbedContextLib.csproj", "StubbedContext/"] RUN dotnet restore "./API/./API.csproj" COPY . . WORKDIR "/src/API" +RUN chmod 666 Db.* RUN dotnet build "./API.csproj" -c $BUILD_CONFIGURATION -o /app/build FROM build AS publish