Download Dockerfile from bluece/DEMO2: direct link, hf CLI and curl.
- Browser
- Download file 433 Bytes
-
https://huggingface.co/spaces/bluece/DEMO2/resolve/d74fdf287b2b2d71e20d91b9e84c4f5ae1d872eb/Dockerfile
- Command line
-
hf download hf://spaces/bluece/DEMO2@d74fdf287b2b2d71e20d91b9e84c4f5ae1d872eb/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/bluece/DEMO2/resolve/d74fdf287b2b2d71e20d91b9e84c4f5ae1d872eb/Dockerfile
433 Bytes
| FROM golang:1.23-alpine AS builder | |
| WORKDIR /app | |
| RUN apk add git make && git clone https://github.com/bincooo/chatgpt-adapter.git -b v3.0.0-beta . | |
| RUN make install | |
| RUN make build-linux | |
| RUN cat /tmp/go_build_gen_works/chatgpt-adapter/relay/hf/container.gen.go | |
| FROM alpine:3.19.0 | |
| WORKDIR /app | |
| COPY --from=builder /app/bin/linux/server ./server | |
| RUN chmod +x server | |
| ENV ARG "--port 8080" | |
| CMD ["./server ${ARG}"] | |
| ENTRYPOINT ["sh", "-c"] |