Update Dockerfile
Browse files- Dockerfile +9 -7
Dockerfile
CHANGED
@@ -15,14 +15,16 @@ 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 |
-
tar -xzf openlist-linux-amd64.tar.gz --strip-components=1 -C . && \
|
21 |
-
rm -f openlist-linux-amd64.tar.gz
|
22 |
|
23 |
-
#
|
24 |
-
RUN
|
25 |
-
|
|
|
|
|
|
|
|
|
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"]
|