Download Dockerfile from cfjy66/auto: direct link, hf CLI and curl.
- Browser
- Download file 588 Bytes
-
https://huggingface.co/spaces/cfjy66/auto/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/cfjy66/auto/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/cfjy66/auto/resolve/main/Dockerfile
588 Bytes
| # 使用轻量级基础镜像 | |
| FROM alpine:3.18 as builder | |
| # 安装必要依赖(Alpine 镜像专用命令) | |
| RUN apk add --no-cache \ | |
| git \ | |
| libc6-compat \ | |
| shadow \ | |
| && adduser -D -u 1000 alistuser | |
| # 从官方仓库安装 Alist | |
| RUN wget https://github.com/alist-org/alist/releases/latest/download/alist-linux-amd64.tar.gz \ | |
| && tar -zxvf alist-linux-amd64.tar.gz \ | |
| && mv alist /usr/local/bin/ \ | |
| && chmod +x /usr/local/bin/alist | |
| # 配置工作目录 | |
| USER alistuser | |
| WORKDIR /app | |
| COPY --chown=alistuser:alistuser sync.sh . | |
| RUN chmod +x sync.sh | |
| CMD ["./sync.sh"] |