HuggingFace0920 commited on
Commit
c830c4f
·
verified ·
1 Parent(s): 83ef5c8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -8
Dockerfile CHANGED
@@ -15,17 +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
  tar -xzf openlist-linux-amd64.tar.gz && \
21
- # 列出解压后的文件,用于调试
22
- ls -l && \
23
- # 解压内层压缩包(使用通配符匹配实际文件名)
24
- tar -xf *.tar && \
25
- # 移动可执行文件
26
- mv openlist . && \
27
  # 清理所有临时文件
28
- rm -rf openlist-linux-amd64.tar.gz *.tar
29
 
30
  # 设置权限
31
  RUN chmod 755 openlist
 
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文件
22
+ find . -type f -name "*.tar" -exec tar -xf {} \; && \
23
+ # 查找并移动可执行文件
24
+ find . -type f -name "openlist" -exec mv {} . \; && \
 
 
25
  # 清理所有临时文件
26
+ rm -rf openlist-linux-amd64.tar.gz *linux-amd64*
27
 
28
  # 设置权限
29
  RUN chmod 755 openlist