From 36e57ff489d23e1037050c9de7f0a39598f8caee Mon Sep 17 00:00:00 2001 From: ucmao <294323976@qq.com> Date: Sat, 10 Oct 2026 21:00:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=95=9C=E5=83=8F=E5=86=85?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E8=AF=BB=E5=8F=96=E6=9D=83=E9=99=90=E5=85=9C?= =?UTF-8?q?=E5=BA=95=EF=BC=8C=E9=98=B2=E6=AD=A2=E9=9D=9Eroot=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E5=B4=A9=E6=BA=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e575060..29da645 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,9 +20,10 @@ RUN pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ && \ # 创建专用非 root 运行用户 RUN addgroup --system app && adduser --system --ingroup app app -# 复制项目所有代码 +# 复制项目所有代码并设置基础读取权限兜底 COPY --chown=app:app . /app/ -RUN chmod +x /app/docker-entrypoint.sh +RUN chmod +x /app/docker-entrypoint.sh && \ + chmod -R a+rX /app # 开放 8051 端口 EXPOSE 8051