Update Dockerfile
Browse files- Dockerfile +7 -8
Dockerfile
CHANGED
@@ -15,16 +15,15 @@ RUN apt-get update && \
|
|
15 |
# 设置工作目录
|
16 |
WORKDIR /OpenList
|
17 |
|
18 |
-
#
|
19 |
-
RUN wget -q https://github.com/OpenListTeam/OpenList/releases/download/beta/openlist-linux-amd64.tar.gz
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
mv openlist-linux-amd64/openlist ./ && \
|
24 |
rm -rf openlist-linux-amd64*
|
25 |
|
26 |
-
# 设置权限
|
27 |
-
RUN chmod 755
|
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"]
|