Update 'Sources/Dockerfile'
continuous-integration/drone/push Build is failing Details

master
Félix MIELCAREK 2 years ago
parent d873c6a969
commit 4851f9f3ba

@ -1,16 +1,16 @@
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
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
COPY ./OpenLibraryWrapper/ .
RUN dotnet add OpenLibraryWrapper.csproj package Swashbuckle.AspNetCore -v 6.5
RUN dotnet restore OpenLibraryWrapper.csproj
RUN dotnet build OpenLibraryWrapper.csproj
RUN dotnet publish OpenLibraryWrapper.csproj -c Release
FROM mcr.microsoft.com/dotnet/aspnet:7.0
WORKDIR /app
COPY --from=build /src .
COPY --from=build /src/ .
EXPOSE 80
ENTRYPOINT ["dotnet", "OpenLibraryWrapper.dll"]
Loading…
Cancel
Save