Update docker
ci-cd-vm / ci-cd (push) Failing after 3m6s

This commit is contained in:
Chris Chen
2026-06-22 16:15:28 -07:00
parent 807e88f929
commit 0924b1a980
2 changed files with 5 additions and 2 deletions
+5 -2
View File
@@ -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
+11
View File
@@ -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>