Spaces:
Runtime error
Runtime error
File size: 743 Bytes
d95f650 62fcf3f b914de5 e5be68a c50ec7e b914de5 7e75c00 ac1c0b6 b914de5 e5be68a 327964e f3e1c6c b914de5 4a07cae 3845754 b914de5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
FROM ubuntu:22.04
# 创建目录并设置权限
RUN mkdir -p /openlist/data && chmod -R 777 /openlist
WORKDIR /openlist
# 安装必要的软件
RUN apt-get update && apt install -y wget
# 下载并解压 OpenList
RUN wget https://github.com/OpenListTeam/OpenList/releases/latest/download/openlist-linux-amd64.tar.gz \
&& tar -zxvf openlist-linux-amd64.tar.gz openlist \
&& rm openlist-linux-amd64.tar.gz
# RUN useradd -m openlist-user && chown -R openlist-user:openlist-user /openlist
# USER openlist-user
# 设置可执行权限
RUN chmod +x openlist
# 暴露端口
EXPOSE 5244
# 复制启动脚本
COPY start.sh /openlist/start.sh
RUN chmod +x /openlist/start.sh
# 容器启动时运行启动脚本
CMD ["/openlist/start.sh"] |