Update 'Sources/Dockerfile'
continuous-integration/drone/push Build was killed Details

master
Félix MIELCAREK 2 years ago
parent c2aa9ff2e2
commit 2877c2c722

@ -3,10 +3,7 @@ WORKDIR /src
COPY . .
RUN dotnet add OpenLibraryWrapper/OpenLibraryWrapper.csproj package Swashbuckle.AspNetCore -v 6.5
RUN dotnet restore OpenLibraryWrapper/OpenLibraryWrapper.csproj
RUN dotnet build OpenLibraryWrapper/OpenLibraryWrapper.csproj
RUN dotnet publish OpenLibraryWrapper/OpenLibraryWrapper.csproj -c Release -o /src/publish
RUN dotnet add OpenLibraryWrapper/OpenLibraryWrapper.csproj package Swashbuckle.AspNetCore -v 6.5 && dotnet restore OpenLibraryWrapper/OpenLibraryWrapper.csproj && dotnet build OpenLibraryWrapper/OpenLibraryWrapper.csproj && dotnet publish OpenLibraryWrapper/OpenLibraryWrapper.csproj -c Release -o /src/publish
FROM mcr.microsoft.com/dotnet/aspnet:7.0
WORKDIR /app

Loading…
Cancel
Save