You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
453 B
16 lines
453 B
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
|
|
WORKDIR /src
|
|
|
|
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/ .
|
|
|
|
EXPOSE 80
|
|
ENTRYPOINT ["dotnet", "OpenLibraryWrapper.dll"] |