Download Dockerfile from Selinore/cct: direct link, hf CLI and curl.
- Browser
- Download file 699 Bytes
-
https://huggingface.co/spaces/Selinore/cct/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Selinore/cct/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Selinore/cct/resolve/main/Dockerfile
699 Bytes
| FROM ghcr.io/hkuds/lightrag:latest | |
| USER root | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| curl ca-certificates procps \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # 复制补丁脚本并运行,完成色板替换 | |
| COPY patch_colors.py /tmp/patch_colors.py | |
| RUN python3 /tmp/patch_colors.py && rm -f /tmp/patch_colors.py | |
| RUN mkdir -p /data /app && \ | |
| chown -R 1000:1000 /data /app && \ | |
| chmod -R 777 /data /app | |
| ENV HOME=/app | |
| USER 1000 | |
| WORKDIR /app | |
| # 复制启动脚本和我们自定义的静态路由主程序 | |
| COPY --chown=1000:1000 main.py /app/main.py | |
| COPY --chown=1000:1000 start.sh /app/start.sh | |
| RUN chmod +x /app/start.sh | |
| EXPOSE 7860 | |
| ENTRYPOINT ["/app/start.sh"] |