sfun commited on
Commit
691eb14
1 Parent(s): bb23c43

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -0
Dockerfile CHANGED
@@ -2,7 +2,9 @@ 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
 
 
2
 
3
  WORKDIR /app
4
 
5
+ RUN chmod 777 -R /app
6
  RUN apk add git && git clone https://github.com/xyy002/claudetoapi.git .
7
+ RUN sed -i'' 's|r.POST("/v1|r.POST("/api/v1|g' /app/main.go
8
  RUN GOOS=linux GOARCH=amd64 go build -o getkeyinfo
9
  RUN chmod +x /app/claudetoapi
10