Update 'Sources/Dockerfile'
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
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…
Reference in new issue