Download Dockerfile from caidao78/c: direct link, hf CLI and curl.
- Browser
- Download file 946 Bytes
-
https://huggingface.co/spaces/caidao78/c/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/caidao78/c/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/caidao78/c/resolve/main/Dockerfile
946 Bytes
| FROM debian:bookworm-slim | |
| ENV TZ=Asia/Shanghai | |
| ENV PORT=7860 | |
| ENV RUNTIME_DIR=/tmp/runtime | |
| ENV SUPERVISOR_CONF=/etc/supervisord.conf | |
| ENV SUPERVISOR_CONF_TEMPLATE=/etc/supervisord.conf.template | |
| ENV STOP_WAIT_SECS=60 | |
| RUN apt-get update \ | |
| && DEBIAN_FRONTEND=noninteractive apt-get install -y \ | |
| --no-install-recommends \ | |
| ca-certificates \ | |
| curl \ | |
| libc6 \ | |
| supervisor \ | |
| tzdata \ | |
| && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \ | |
| && echo "$TZ" > /etc/timezone \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY entrypoint.sh /usr/local/bin/entrypoint.sh | |
| COPY scripts/release-common.sh /usr/local/bin/release-common.sh | |
| COPY scripts/update-loop.sh /usr/local/bin/update-loop.sh | |
| COPY supervisord.conf /etc/supervisord.conf.template | |
| RUN chmod +x \ | |
| /usr/local/bin/entrypoint.sh \ | |
| /usr/local/bin/release-common.sh \ | |
| /usr/local/bin/update-loop.sh | |
| ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] | |