Spaces:
Sleeping
Sleeping
Download Dockerfile from augustLees/openlist: direct link, hf CLI and curl.
- Browser
- Download file 590 Bytes
-
https://huggingface.co/spaces/augustLees/openlist/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/augustLees/openlist/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/augustLees/openlist/resolve/main/Dockerfile
590 Bytes
| # 使用 openlist 官方最新镜像 | |
| FROM openlistteam/openlist:latest | |
| # 1. 切换到UID root的用户 | |
| USER root | |
| # 2. 创建并配置工作目录和缓存目录 | |
| # 先以root权限创建目录并设置正确的所有权 | |
| RUN mkdir -p /opt/openlist/data/data && chown root /opt/openlist/data && chmod -R 777 /opt/openlist/data | |
| # 3. 开放端口 | |
| EXPOSE 5244/tcp | |
| ENV TZ=Asia/Shanghai | |
| ENV PORT=5244 | |
| # 设置工作目录 | |
| VOLUME ["/opt/openlist/data"] | |
| # 4. 安装额外的系统依赖(按需取消注释) | |
| HEALTHCHECK --interval=30s --timeout=3s CMD curl -f http://localhost:5244 ||exit 1 |