2
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 3s
Docker Build & Deploy / Deploy to Production (push) Successful in 4s

This commit is contained in:
孙诚
2025-03-06 17:40:20 +08:00
parent bf492d196b
commit eadb57eff7

View File

@@ -5,13 +5,6 @@ EXPOSE 8080
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
# 创建与宿主机匹配的 UID/GID
ARG TARGET_UID=0
ARG TARGET_GID=0
RUN groupadd -g $TARGET_GID appuser && \
useradd -u $TARGET_UID -g $TARGET_GID -d /app -s /bin/bash appuser
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["src/Core/Core.csproj", "src/Core/"]