claude2api / Dockerfile
sfun's picture
Create Dockerfile
bb23c43 verified
raw
history blame
No virus
262 Bytes
FROM golang:1.21-alpine AS builder
WORKDIR /app
RUN apk add git && git clone https://github.com/xyy002/claudetoapi.git .
RUN GOOS=linux GOARCH=amd64 go build -o getkeyinfo
RUN chmod +x /app/claudetoapi
CMD ["sh", "-c", "nohup ./claudetoapi >> run.log 2>&1 &"]