cfiles commited on
Commit
1cb0cd8
·
verified ·
1 Parent(s): 7daa8df

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -1
Dockerfile CHANGED
@@ -13,7 +13,14 @@ RUN wget https://github.com/cloudreve/Cloudreve/releases/download/3.8.3/cloudrev
13
  tar -zxvf cloudreve_linux_amd64.tar.gz
14
 
15
  # 创建数据目录并设置权限
16
- RUN mkdir -p /opt/cloudreve/data && chmod -R 755 /opt/cloudreve
 
 
 
 
 
 
 
17
 
18
  # 创建Python虚拟环境并安装依赖
19
  ENV VIRTUAL_ENV=/opt/venv
 
13
  tar -zxvf cloudreve_linux_amd64.tar.gz
14
 
15
  # 创建数据目录并设置权限
16
+ RUN mkdir -p /opt/cloudreve/data
17
+
18
+ # 改变 /opt/cloudreve 目录的所有者为 root 用户
19
+ RUN chown -R root:root /opt/cloudreve
20
+
21
+ # 设置 /opt/cloudreve 目录的写入权限
22
+ RUN chmod -R 755 /opt/cloudreve
23
+ RUN chmod -R u+w /opt/cloudreve
24
 
25
  # 创建Python虚拟环境并安装依赖
26
  ENV VIRTUAL_ENV=/opt/venv