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

master
Alexandre GLENAT 2 years ago
parent 78bb5c4ff6
commit 9065e32e69

@ -16,17 +16,15 @@ 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 ../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
COPY ["Entity_Framework/BDD.db", "Entity_Framework/"]
ENTRYPOINT ["dotnet", "Api.dll"]
Loading…
Cancel
Save