Download Dockerfile from 8e/sb: direct link, hf CLI and curl.
- Browser
- Download file 428 Bytes
-
https://huggingface.co/spaces/8e/sb/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/8e/sb/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/8e/sb/resolve/main/Dockerfile
428 Bytes
| FROM alpine:latest | |
| RUN apk update && apk add --no-cache curl | |
| RUN echo "https://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories | |
| RUN apk update && apk add --no-cache sing-box | |
| RUN mkdir -p /etc/sing-box | |
| RUN touch /etc/sing-box/config.json | |
| RUN chmod 777 /etc/sing-box/config.json | |
| #COPY main.py /etc/sing-box/main.py | |
| CMD echo $CONFIG_TXT > /etc/sing-box/config.json && sing-box run -c /etc/sing-box/config.json |