HuggingFace0920 commited on
Commit
40b2574
·
verified ·
1 Parent(s): 3712219

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -8
Dockerfile CHANGED
@@ -15,16 +15,15 @@ RUN apt-get update && \
15
  # 设置工作目录
16
  WORKDIR /OpenList
17
 
18
- # 下载 OpenList
19
- RUN wget -q https://github.com/OpenListTeam/OpenList/releases/download/beta/openlist-linux-amd64.tar.gz
20
-
21
- # 解压并处理文件路径
22
- RUN tar -xzf openlist-linux-amd64.tar.gz && \
23
- mv openlist-linux-amd64/openlist ./ && \
24
  rm -rf openlist-linux-amd64*
25
 
26
- # 设置权限 (仅需设置可执行文件)
27
- RUN chmod 755 /OpenList/openlist
28
 
29
  # 启动服务
30
  CMD ["./openlist", "server"]
 
15
  # 设置工作目录
16
  WORKDIR /OpenList
17
 
18
+ # 下载并解压 OpenList (处理嵌套压缩包)
19
+ RUN wget -q https://github.com/OpenListTeam/OpenList/releases/download/beta/openlist-linux-amd64.tar.gz && \
20
+ tar -xzf openlist-linux-amd64.tar.gz && \
21
+ tar -xf openlist-linux-amd64.tar && \
22
+ mv openlist . && \
 
23
  rm -rf openlist-linux-amd64*
24
 
25
+ # 设置权限
26
+ RUN chmod 755 openlist
27
 
28
  # 启动服务
29
  CMD ["./openlist", "server"]