Download Dockerfile from ao3rda/reader3: direct link, hf CLI and curl.
- Browser
- Download file 407 Bytes
-
https://huggingface.co/spaces/ao3rda/reader3/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ao3rda/reader3/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ao3rda/reader3/resolve/main/Dockerfile
407 Bytes
| # 使用 hectorqin/reader 作为基础镜像 | |
| FROM hectorqin/reader:latest | |
| # 创建目录 | |
| RUN mkdir -p /logs /storage | |
| # 添加权限 | |
| RUN chmod a+w /logs | |
| RUN chmod a+w /storage | |
| # 设置数据卷 | |
| VOLUME /logs | |
| VOLUME /storage | |
| # 设置时区 | |
| ENV TZ=Asia/Shanghai | |
| # 暴露端口 | |
| EXPOSE 8080 | |
| # 设置启动命令 (可选,如果镜像默认启动命令不合适) | |
| CMD ["java", "-jar", "/app/bin/reader.jar"] |