1
Some checks failed
Docker Build & Deploy / Build Docker Image (push) Failing after 4s
Docker Build & Deploy / Deploy to Production (push) Has been skipped

This commit is contained in:
孙诚
2025-03-06 17:38:25 +08:00
parent c1e62c75c5
commit bf492d196b
2 changed files with 8 additions and 1 deletions

View File

@@ -5,6 +5,13 @@ 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/"]

View File

@@ -9,7 +9,7 @@
- TZ=Asia/Shanghai
volumes:
- /etc/localtime:/etc/localtime:ro
- /wd/volc/media/tv:/data/tv
- /wd/volc/media/tv:/data/tv:rw
nas_robot_proxy:
image: beevelop/nginx-basic-auth:v2023.10.1