Download Dockerfile from bluece/DEMO2: direct link, hf CLI and curl.
- Browser
- Download file 536 Bytes
-
https://huggingface.co/spaces/bluece/DEMO2/resolve/5e91f62c60f55d5261481dbe681bc27433c22a84/Dockerfile
- Command line
-
hf download hf://spaces/bluece/DEMO2@5e91f62c60f55d5261481dbe681bc27433c22a84/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/bluece/DEMO2/resolve/5e91f62c60f55d5261481dbe681bc27433c22a84/Dockerfile
536 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 build-linux | |
| # RUN make build-osx | |
| # RUN make build-win | |
| FROM alpine:3.19.0 | |
| RUN apk add curl | |
| WORKDIR /app | |
| COPY --from=builder /app/bin/linux/server ./server | |
| ADD config.yaml . | |
| RUN chmod +x server | |
| # 下载过盾文件 | |
| RUN curl -JLO https://github.com/bincooo/chatgpt-adapter/tree/hel/bin.zip | |
| ENV ARG "--port 7860" | |
| CMD ["./server ${ARG}"] | |
| ENTRYPOINT ["sh", "-c"] |