Spaces:
Runtime error
Runtime error
Download Dockerfile from leafmoes/PDF-Process: direct link, hf CLI and curl.
- Browser
- Download file 449 Bytes
-
https://huggingface.co/spaces/leafmoes/PDF-Process/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/leafmoes/PDF-Process/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/leafmoes/PDF-Process/resolve/main/Dockerfile
449 Bytes
| # 使用现有的镜像 | |
| FROM stirlingtools/stirling-pdf:latest | |
| # 设置工作目录 | |
| WORKDIR /app | |
| # 设置卷(volumes) | |
| # 将主机目录挂载到容器中 | |
| # VOLUME ["/usr/share/tessdata", "/configs"] | |
| # 设置环境变量 | |
| ENV SYSTEM_ENABLEANALYTICS=false | |
| ENV SYSTEM_DEFAULTLOCALE=zh_CN | |
| ENV DOCKER_ENABLE_SECURITY=false | |
| ENV INSTALL_BOOK_AND_ADVANCED_HTML_OPS=true | |
| ENV LANGS=zh_CN | |
| # 设置权限 | |
| RUN chmod -R 777 /app | |
| # 暴露端口 | |
| EXPOSE 8080 |