fix: set USER root before system package installation

This commit is contained in:
zzx-coder 2026-05-12 22:38:20 +08:00
parent 9042c56474
commit 5313d0a92d
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,9 @@
FROM crpi-1x701qgqjia2gdeu.cn-chengdu.personal.cr.aliyuncs.com/gitlink-help-center/gitlink-help-center:node-18-alpine
LABEL maintainer="yuankaifneg <2894340009@qq.com>"
# 设置为root用户以安装系统依赖
USER root
# 安装必要的系统依赖
RUN yum install -y \
git \