Spaces:
Sleeping
Sleeping
Download Dockerfile from SpacesExamples/test-docker-go: direct link, hf CLI and curl.
- Browser
- Download file 178 Bytes
-
https://huggingface.co/spaces/SpacesExamples/test-docker-go/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/SpacesExamples/test-docker-go/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/SpacesExamples/test-docker-go/resolve/main/Dockerfile
178 Bytes
| FROM golang:1.18 as builder | |
| WORKDIR /workdir | |
| COPY main.go . | |
| RUN go build -o main main.go | |
| FROM golang:1.18 | |
| WORKDIR /workdir | |
| COPY --from=builder /workdir/main /main | |
| CMD /main | |