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