flzta commited on
Commit
fb8fdde
·
verified ·
1 Parent(s): 21e066f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -22,11 +22,13 @@ RUN tar -zxvf cloudreve_3.8.3_linux_amd64.tar.gz
22
  # 创建数据目录
23
  RUN mkdir -p /opt/cloudreve/data
24
  RUN chmod -R 755 /opt/cloudreve
25
- RUN chown -R www-data:www-data /opt/cloudreve
26
 
27
  # 将用户 www-data 添加到已存在的组
28
  RUN adduser -u 1000 -D -S -G www-data www-data
29
 
 
 
 
30
  # 复制同步脚本
31
  COPY sync_data.sh /
32
  RUN chmod +x /sync_data.sh
 
22
  # 创建数据目录
23
  RUN mkdir -p /opt/cloudreve/data
24
  RUN chmod -R 755 /opt/cloudreve
 
25
 
26
  # 将用户 www-data 添加到已存在的组
27
  RUN adduser -u 1000 -D -S -G www-data www-data
28
 
29
+ # 更改 /opt/cloudreve 目录的所有权为 www-data 用户
30
+ RUN chown -R www-data:www-data /opt/cloudreve
31
+
32
  # 复制同步脚本
33
  COPY sync_data.sh /
34
  RUN chmod +x /sync_data.sh