Download Dockerfile from Spooker/sc: direct link, hf CLI and curl.
- Browser
- Download file 532 Bytes
-
https://huggingface.co/spaces/Spooker/sc/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Spooker/sc/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Spooker/sc/resolve/main/Dockerfile
532 Bytes
| # Hugging Face Docker Space image for the Go OpenAI-compatible proxy. | |
| FROM golang:alpine AS builder | |
| WORKDIR /src | |
| COPY go.mod ./ | |
| COPY main.go ./ | |
| RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/scnet-proxy ./main.go | |
| FROM alpine:latest | |
| RUN apk --no-cache add ca-certificates tzdata \ | |
| && adduser -D -u 1000 user | |
| WORKDIR /app | |
| COPY --from=builder /out/scnet-proxy /app/scnet-proxy | |
| ENV HOST=0.0.0.0 \ | |
| PORT=7860 \ | |
| CACHE_FILE=/tmp/conversations.json | |
| EXPOSE 7860 | |
| USER user | |
| CMD ["/app/scnet-proxy"] | |