claude2api / Dockerfile
sfun's picture
Update Dockerfile
5e36dcb verified
raw
history blame
322 Bytes
FROM golang:1.21-alpine AS builder
WORKDIR /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 &"]