Download Dockerfile from reon314/du2a: direct link, hf CLI and curl.
- Browser
- Download file 263 Bytes
-
https://huggingface.co/spaces/reon314/du2a/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/reon314/du2a/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/reon314/du2a/resolve/main/Dockerfile
263 Bytes
| FROM golang:1.21 | |
| RUN apt update && apt install git && git clone https://github.com/aurora-develop/Duck2api.git /app | |
| WORKDIR /app | |
| RUN go mod download | |
| EXPOSE 7860 | |
| ENV SERVER_HOST=0.0.0.0 | |
| ENV PREFIX=/hf | |
| ENV SERVER_PORT=7860 | |
| RUN go build -o main . | |
| CMD ["/app/main"] |