Download Dockerfile from Collabos/registar: direct link, hf CLI and curl.
- Browser
- Download file 338 Bytes
-
https://huggingface.co/spaces/Collabos/registar/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Collabos/registar/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Collabos/registar/resolve/main/Dockerfile
338 Bytes
| FROM golang:1.21-alpine AS builder | |
| RUN apk add --no-cache git ca-certificates | |
| WORKDIR /app | |
| COPY . . | |
| RUN go mod tidy | |
| RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o server . | |
| FROM alpine:3.19 | |
| RUN apk --no-cache add ca-certificates tzdata | |
| WORKDIR /root/ | |
| COPY --from=builder /app/server . | |
| EXPOSE 7860 | |
| CMD ["./server"] | |