flzta commited on
Commit
1e87d37
·
verified ·
1 Parent(s): 567f62c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -0
Dockerfile CHANGED
@@ -28,6 +28,9 @@ RUN useradd -u 1000 -ms /bin/bash www-data || true
28
  # 更改 /opt/app 目录的所有权为 www-data 用户
29
  RUN chown -R www-data:www-data /opt/app
30
 
 
 
 
31
  # 在更改所有者后设置目录权限
32
  RUN chmod -R 775 /opt/app
33
 
 
28
  # 更改 /opt/app 目录的所有权为 www-data 用户
29
  RUN chown -R www-data:www-data /opt/app
30
 
31
+ # 显式设置 app_data 目录的所有者
32
+ RUN chown -R www-data:www-data /opt/app/app_data
33
+
34
  # 在更改所有者后设置目录权限
35
  RUN chmod -R 775 /opt/app
36