+5
-2
@@ -1,10 +1,13 @@
|
||||
# ---- build ----
|
||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
||||
WORKDIR /src
|
||||
# nuget.config carries the DevExpress licensed feed so restore resolves 24.1.3
|
||||
# (the public feed only offers the trial 25.x, which renamed TableBorderLineStyle).
|
||||
COPY nuget.config ./
|
||||
COPY ROLAC.API/ROLAC.API.csproj ROLAC.API/
|
||||
RUN dotnet restore ROLAC.API/ROLAC.API.csproj
|
||||
RUN dotnet restore ROLAC.API/ROLAC.API.csproj --configfile nuget.config
|
||||
COPY ROLAC.API/ ROLAC.API/
|
||||
RUN dotnet publish ROLAC.API/ROLAC.API.csproj -c Release -o /app/publish /p:UseAppHost=false
|
||||
RUN dotnet publish ROLAC.API/ROLAC.API.csproj -c Release -o /app/publish /p:UseAppHost=false --no-restore
|
||||
|
||||
# ---- runtime ----
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS final
|
||||
|
||||
Reference in New Issue
Block a user