Download Dockerfile from ShawnAI/Socks: direct link, hf CLI and curl.
- Browser
- Download file 378 Bytes
-
https://huggingface.co/spaces/ShawnAI/Socks/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ShawnAI/Socks/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ShawnAI/Socks/resolve/main/Dockerfile
378 Bytes
| ARG GOLANG_VERSION="1.19.1" | |
| FROM golang:$GOLANG_VERSION-alpine as builder | |
| RUN apk --no-cache add tzdata | |
| WORKDIR /go/src/github.com/serjs/socks5 | |
| COPY . . | |
| RUN go mod init | |
| RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-s' -o ./socks5 | |
| FROM gcr.io/distroless/static:nonroot | |
| COPY --from=builder /go/src/github.com/serjs/socks5/socks5 / | |
| ENTRYPOINT ["/socks5"] |