[#1] 容器启动时刻创建持久化数据目录和修改权限

This commit is contained in:
root
2025-09-17 04:28:35 +00:00
parent 2faa13c567
commit 8391108327
4 changed files with 4 additions and 10 deletions

View File

@@ -31,10 +31,6 @@ COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY start-es-supervised.sh /usr/local/bin/start-es-supervised.sh
RUN chmod +x /usr/local/bin/start-es-supervised.sh
# 创建数据目录并设置权限
RUN mkdir -p /private/argus/log/elasticsearch && \
chown -R elasticsearch:elasticsearch /private/argus/log/elasticsearch
# 保持 root 用户,由 supervisor 管理用户切换
USER root