Spaces:
Paused
Paused
| FROM golang:1.21-alpine AS builder | |
| WORKDIR /app | |
| RUN chmod 777 -R /app | |
| RUN apk add git && git clone https://github.com/xyy002/claudetoapi.git . | |
| RUN sed -i'' 's|r.POST("/v1|r.POST("/api/v1|g' /app/main.go | |
| RUN GOOS=linux GOARCH=amd64 go build -o getkeyinfo | |
| RUN chmod +x /app/claudetoapi | |
| CMD ["sh", "-c", "nohup ./claudetoapi >> run.log 2>&1 &"] |