cfiles commited on
Commit
b514eeb
·
verified ·
1 Parent(s): 679dfa5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -32,8 +32,8 @@ RUN tar -zxvf cloudreve_3.8.3_linux_amd64.tar.gz
32
  RUN mkdir -p /opt/cloudreve/data
33
  RUN chmod -R 755 /opt/cloudreve
34
 
35
- # 将用户 www-data 添加到已存在的组
36
- RUN adduser -u 1000 -D -S -G www-data www-data
37
 
38
  # 更改 /opt/cloudreve 目录的所有权为 www-data 用户
39
  RUN chown -R www-data:www-data /opt/cloudreve
@@ -55,4 +55,4 @@ EXPOSE 5212
55
  USER www-data
56
 
57
  # 设置运行 Cloudreve 的命令,包含同步脚本
58
- CMD ["/bin/sh", "-c", "/opt/cloudreve/sync_data.sh & sleep 30 && ./cloudreve -c /opt/cloudreve/cloudreve.ini"]
 
32
  RUN mkdir -p /opt/cloudreve/data
33
  RUN chmod -R 755 /opt/cloudreve
34
 
35
+ # 安装 www-data 用户
36
+ RUN adduser -D -u 1000 www-data
37
 
38
  # 更改 /opt/cloudreve 目录的所有权为 www-data 用户
39
  RUN chown -R www-data:www-data /opt/cloudreve
 
55
  USER www-data
56
 
57
  # 设置运行 Cloudreve 的命令,包含同步脚本
58
+ CMD ["/bin/sh", "-c", "/opt/cloudreve/sync_data.sh & sleep 5 && ./cloudreve -c /opt/cloudreve/cloudreve.ini"]