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