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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -7
Dockerfile CHANGED
@@ -15,14 +15,16 @@ 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
- tar -xzf openlist-linux-amd64.tar.gz --strip-components=1 -C . && \
21
- rm -f openlist-linux-amd64.tar.gz
22
 
23
- # 设置安全权限 (按需调整)
24
- RUN chmod 755 /OpenList && \
25
- chmod 755 /OpenList/openlist
 
 
 
 
26
 
27
  # 启动服务
28
  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
 
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"]