Download Dockerfile from agi002/llms: direct link, hf CLI and curl.
- Browser
- Download file 456 Bytes
-
https://huggingface.co/spaces/agi002/llms/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/agi002/llms/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/agi002/llms/resolve/main/Dockerfile
456 Bytes
| # 使用 gpt-load 官方提供的最新 Docker 镜像 | |
| FROM ghcr.io/tbphp/gpt-load:latest | |
| # 切换到 root 用户以获取权限 | |
| USER root | |
| # 创建 /app/data 目录,并将其所有权交给普通用户 (UID 1000) | |
| # 这是 gpt-load 默认存放 SQLite 数据库的地方 | |
| # 数据似乎会定期消失。。 | |
| RUN mkdir -p /app/data && chown 1000:1000 /app/data | |
| # 切换回普通用户 (UID 1000) 来运行应用,这是一种安全最佳实践 | |
| USER 1000 | |