openlist / Dockerfile
fytt601's picture
1
926c669 verified
Raw
History Blame Contribute Delete
495 Bytes
# 使用 OpenList 官方镜像作为基础
FROM openlistteam/openlist:latest
# 设置工作目录
WORKDIR /opt/openlist/
# Hugging Face 环境下需要解决权限问题
# 官方镜像默认可能使用 root 或 1001 用户,这里强制改为可写
USER root
RUN chmod -R 777 /opt/openlist/
# 切换回非 root 用户运行(可选,部分版本直接 root 运行即可)
# USER 1000
# 暴露 OpenList 默认端口
EXPOSE 5244
# 启动命令
CMD ["./openlist", "server", "--no-prefix"]