BG5 commited on
Commit
e9ab03d
·
verified ·
1 Parent(s): b549e0f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -39,11 +39,13 @@ RUN apt-get update && apt-get install -y \
39
  # 同时运行 python main.py 和 bash install.sh
40
  # RUN python main.py & \
41
  # bash quick_start.sh
 
 
 
 
 
42
  # 创建一个启动脚本
43
  RUN echo '#!/bin/bash' > /start-webmin.sh && \
44
- echo 'mkdir -p /var/log/webmin' >> /start-webmin.sh && \
45
- echo 'chown root:root /var/log/webmin' >> /start-webmin.sh && \
46
- echo 'chmod 755 /var/log/webmin' >> /start-webmin.sh && \
47
  echo 'service webmin start' >> /start-webmin.sh && \
48
  echo 'tail -f /var/log/webmin/miniserv.log' >> /start-webmin.sh && \
49
  chmod +x /start-webmin.sh
 
39
  # 同时运行 python main.py 和 bash install.sh
40
  # RUN python main.py & \
41
  # bash quick_start.sh
42
+ # 创建日志目录并设置权限
43
+ RUN mkdir -p /var/log/webmin && \
44
+ chown root:root /var/log/webmin && \
45
+ chmod 755 /var/log/webmin
46
+
47
  # 创建一个启动脚本
48
  RUN echo '#!/bin/bash' > /start-webmin.sh && \
 
 
 
49
  echo 'service webmin start' >> /start-webmin.sh && \
50
  echo 'tail -f /var/log/webmin/miniserv.log' >> /start-webmin.sh && \
51
  chmod +x /start-webmin.sh