Download Dockerfile from 8e/v2: direct link, hf CLI and curl.
- Browser
- Download file 672 Bytes
-
https://huggingface.co/spaces/8e/v2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/8e/v2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/8e/v2/resolve/main/Dockerfile
672 Bytes
| FROM ubuntu:latest | |
| EXPOSE 7860 | |
| WORKDIR /bz/ | |
| COPY Caddyfile /bz/Caddyfile | |
| COPY start.sh /bz/start.sh | |
| RUN apt update && apt install -y wget unzip && \ | |
| wget https://github.com/v2fly/v2ray-core/releases/download/v4.45.2/v2ray-linux-64.zip -O /bz/v2.zip && \ | |
| wget https://github.com/caddyserver/caddy/releases/download/v2.7.6/caddy_2.7.6_linux_amd64.tar.gz -O /bz/caddy.tar.gz && \ | |
| unzip -d /bz/ /bz/v2.zip && \ | |
| tar -zxvf /bz/caddy.tar.gz -C /bz/ | |
| COPY config.json /bz/config.json | |
| RUN --mount=type=secret,id=UUID,mode=0444,required=true \ | |
| sed -i "s/UUID/$(cat /run/secrets/UUID)/g" config.json | |
| RUN chmod -R 777 /bz/ | |
| CMD ["/bin/bash" ,"/bz/start.sh"] | |