Spaces:
Paused
Paused
Create Dockerfile
Browse files- 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 &"]
|