+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
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<packageSources>
|
||||
<clear />
|
||||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
|
||||
<!-- DevExpress licensed feed. The key in this URL is an access secret;
|
||||
this repo is self-hosted on Gitea and the owner accepts checking it in.
|
||||
Pinned to 24.1.3 in ROLAC.API.csproj (25.x renamed TableBorderLineStyle). -->
|
||||
<add key="DevExpress" value="https://nuget.devexpress.com/zmRDeISd9ak1vY8Bxxjolqt1RTUZdPFhpRZU3B2YmpeNxAl6nd/api/v3/index.json" />
|
||||
</packageSources>
|
||||
</configuration>
|
||||
Reference in New Issue
Block a user