HuggingFace0920 commited on
Commit
26da231
·
verified ·
1 Parent(s): cabc5bb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -28,8 +28,11 @@ RUN wget -q https://github.com/OpenListTeam/OpenList/releases/download/beta/open
28
  RUN mkdir -p /OpenList/data && \
29
  chmod -R 777 /OpenList/data
30
 
31
- # 设置可执行权限
32
- RUN chmod 755 openlist
 
 
 
33
 
34
  # 设置非root用户运行
35
  RUN useradd -m openlistuser && \
@@ -38,4 +41,4 @@ RUN useradd -m openlistuser && \
38
  USER openlistuser
39
 
40
  # 启动服务
41
- CMD ["./openlist", "server"]
 
28
  RUN mkdir -p /OpenList/data && \
29
  chmod -R 777 /OpenList/data
30
 
31
+ # 添加脚本
32
+
33
+ # 复制并设置脚本权限
34
+ COPY sync_data.sh ./
35
+ RUN chmod 755 openlist sync_data.sh
36
 
37
  # 设置非root用户运行
38
  RUN useradd -m openlistuser && \
 
41
  USER openlistuser
42
 
43
  # 启动服务
44
+ CMD ["./sync_data.sh ./openlist", "server"]