test
continuous-integration/drone/push Build is failing Details

master
Alexandre GLENAT 2 years ago
parent c6403736bb
commit 3b2ef84116

@ -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"]
Loading…
Cancel
Save