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

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

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