sfun commited on
Commit
bb23c43
1 Parent(s): 76fd252

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -0
Dockerfile ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ FROM golang:1.21-alpine AS builder
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apk add git && git clone https://github.com/xyy002/claudetoapi.git .
6
+ RUN GOOS=linux GOARCH=amd64 go build -o getkeyinfo
7
+ RUN chmod +x /app/claudetoapi
8
+
9
+ CMD ["sh", "-c", "nohup ./claudetoapi >> run.log 2>&1 &"]