8ca2cae988
The Docker daemon reaches the Nexus Docker group over the dedicated connector port 8087 (its registry mirror), not the main 8081 HTTP port, which caused HTTPS-to-HTTP pull failures in CI. Repoint all image refs to 171.22.25.73:8087 at the connector root; npm and NuGet stay on 8081. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
34 lines
1.1 KiB
Docker
34 lines
1.1 KiB
Docker
ARG DOTNET_SDK_IMAGE=171.22.25.73:8087/dotnet/sdk:10.0
|
|
ARG DOTNET_ASPNET_IMAGE=171.22.25.73:8087/dotnet/aspnet:10.0
|
|
|
|
FROM ${DOTNET_SDK_IMAGE} AS build
|
|
WORKDIR /src
|
|
|
|
COPY global.json Directory.Build.props Directory.Packages.props ./
|
|
# nuget.docker.config points to local Nexus mirror (171.22.25.73:8081)
|
|
COPY nuget.docker.config ./nuget.config
|
|
|
|
COPY src/Meezi.Shared/Meezi.Shared.csproj src/Meezi.Shared/
|
|
COPY src/Meezi.Core/Meezi.Core.csproj src/Meezi.Core/
|
|
COPY src/Meezi.Infrastructure/Meezi.Infrastructure.csproj src/Meezi.Infrastructure/
|
|
COPY src/Meezi.API/Meezi.API.csproj src/Meezi.API/
|
|
|
|
ENV NUGET_CERT_REVOCATION_MODE=offline
|
|
RUN --mount=type=cache,target=/root/.nuget/packages \
|
|
dotnet restore src/Meezi.API/Meezi.API.csproj --disable-parallel
|
|
|
|
COPY src/ src/
|
|
COPY data/menu-image-manifest.json data/
|
|
COPY data/demo-credentials.json data/
|
|
RUN dotnet publish src/Meezi.API/Meezi.API.csproj -c Release -o /app/publish /p:UseAppHost=false
|
|
|
|
FROM ${DOTNET_ASPNET_IMAGE} AS runtime
|
|
WORKDIR /app
|
|
|
|
ENV ASPNETCORE_URLS=http://+:8080
|
|
EXPOSE 8080
|
|
|
|
COPY --from=build /app/publish .
|
|
|
|
ENTRYPOINT ["dotnet", "Meezi.API.dll"]
|