sfun commited on
Commit
8b9fc68
·
verified ·
1 Parent(s): 866f9d0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -5
Dockerfile CHANGED
@@ -22,12 +22,8 @@ ENV GO111MODULE=on \
22
  GOOS=linux
23
 
24
  WORKDIR /build
25
- RUN git clone https://github.com/MartialBE/one-api.git .
26
- RUN sed -i'' 's|router.Group("/v1|router.Group("/api/v1|g' /build/router/relay-router.go
27
- RUN sed -i'' 's|HasPrefix(path, "/v1|HasPrefix(path, "/api/v1|g' /build/relay/common.go
28
-
29
  RUN go mod download
30
- COPY --from=builder /build/web/build ./web/build
31
  RUN go build -ldflags "-s -w -X 'one-api/common.Version=$(cat VERSION)' -extldflags '-static'" -o one-api
32
 
33
  FROM alpine
 
22
  GOOS=linux
23
 
24
  WORKDIR /build
25
+ COPY --from=builder /build .
 
 
 
26
  RUN go mod download
 
27
  RUN go build -ldflags "-s -w -X 'one-api/common.Version=$(cat VERSION)' -extldflags '-static'" -o one-api
28
 
29
  FROM alpine