Download Dockerfile from deeme/adapter: direct link, hf CLI and curl.
- Browser
- Download file 546 Bytes
-
https://huggingface.co/spaces/deeme/adapter/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/deeme/adapter/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/deeme/adapter/resolve/main/Dockerfile
546 Bytes
| FROM golang:1.23-alpine AS builder | |
| # 构建执行文件 | |
| WORKDIR /app | |
| RUN apk add git make && git clone https://github.com/bincooo/chatgpt-adapter.git . | |
| RUN make install | |
| RUN CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -toolexec iocgo -ldflags="-s -w" -o bin/linux/server -trimpath main.go | |
| FROM alpine:latest | |
| WORKDIR /app | |
| COPY --from=builder /app/bin/linux/server ./server | |
| ADD config.yaml . | |
| RUN chmod +x server \ | |
| && mkdir log && chmod 777 log \ | |
| && mkdir tmp && chmod 777 tmp | |
| CMD ["./server"] | |
| ENTRYPOINT ["sh", "-c"] |