Add project files.
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
||||
WORKDIR /app
|
||||
|
||||
COPY ["nuget.config", "./"]
|
||||
COPY ["MidrandBooksApi/MidrandBooksApi.csproj", "MidrandBooksApi/"]
|
||||
RUN dotnet restore "MidrandBooksApi/MidrandBooksApi.csproj" --configfile nuget.config
|
||||
COPY . .
|
||||
RUN dotnet publish "MidrandBooksApi/MidrandBooksApi.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
|
||||
WORKDIR /app
|
||||
|
||||
EXPOSE 8080
|
||||
EXPOSE 8081
|
||||
|
||||
COPY --from=build /app/publish .
|
||||
|
||||
ENTRYPOINT ["dotnet", "MidrandBooksApi.dll"]
|
||||
Reference in New Issue
Block a user