From 3b2ef84116117a1c780aa806584f7d87f2ee3952 Mon Sep 17 00:00:00 2001 From: Alexandre GLENAT Date: Thu, 23 Mar 2023 00:09:26 +0100 Subject: [PATCH] test --- Sources/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/Dockerfile b/Sources/Dockerfile index 7e2c5c6..31e16dd 100644 --- a/Sources/Dockerfile +++ b/Sources/Dockerfile @@ -10,21 +10,23 @@ EXPOSE 443 FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build WORKDIR /src -RUN chmod -R 755 ../src COPY ["Api/Api.csproj", "Api/"] COPY ["Dto/Dto.csproj", "Dto/"] COPY ["Modele/Modele.csproj", "Modele/"] COPY ["Entity_Framework/Entity_Framework.csproj", "Entity_Framework/"] COPY ["Interface/Interface.csproj", "Interface/"] COPY ["Extraction_Donnees/Extraction_Donnees.csproj", "Extraction_Donnees/"] +RUN chmod -R 755 ../src RUN dotnet restore "Api/Api.csproj" COPY . . WORKDIR "/src/Api" RUN dotnet build "Api.csproj" -c Release -o /app/build +RUN chmod -R 755 ../src/Api FROM build AS publish RUN dotnet publish "Api.csproj" -c Release -o /app/publish /p:UseAppHost=false FROM base AS final WORKDIR /app COPY --from=publish /app/publish . +RUN chmod -R 755 ../app ENTRYPOINT ["dotnet", "Api.dll"] \ No newline at end of file