Download Dockerfile from bluece/DEMO2: direct link, hf CLI and curl.
- Browser
- Download file 685 Bytes
-
https://huggingface.co/spaces/bluece/DEMO2/resolve/c482d2ca93b8e8541fd7a0cab3324943cc8fa8f2/Dockerfile
- Command line
-
hf download hf://spaces/bluece/DEMO2@c482d2ca93b8e8541fd7a0cab3324943cc8fa8f2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/bluece/DEMO2/resolve/c482d2ca93b8e8541fd7a0cab3324943cc8fa8f2/Dockerfile
685 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 go mod tidy \ | |
| # && sed -i 's/ind := strings.Index(path, importPath)/ind := strings.Index(path, importPath)\n if ind == -1 {\n return path }\n println(path + ", " + importPath)/g' \ | |
| # /go/pkg/mod/github.com/bincooo/go-annotation@v0.0.0-20241129022159-ea84d341fcda/internal/module/interface.go | |
| RUN make install | |
| RUN make build-linux | |
| FROM alpine:3.19.0 | |
| WORKDIR /app | |
| COPY --from=builder /app/bin/linux/server ./server | |
| ADD config.yaml . | |
| RUN chmod +x server | |
| ENV ARG "--port 7860" | |
| CMD ["./server ${ARG}"] | |
| ENTRYPOINT ["sh", "-c"] |