bingloo commited on
Commit
db2df13
·
verified ·
1 Parent(s): 83d7155

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -0
Dockerfile CHANGED
@@ -4,6 +4,7 @@ WORKDIR /app
4
 
5
  RUN git clone https://github.com/deanxv/genspark2api.git . && \
6
  sed -i 's|v1Router := router.Group("/v1")|v1Router := router.Group("/api/v1")|' router/api-router.go && \
 
7
  CGO_ENABLED=0 go build -o /app/bin/g2api -ldflags="-w -s" .
8
 
9
 
 
4
 
5
  RUN git clone https://github.com/deanxv/genspark2api.git . && \
6
  sed -i 's|v1Router := router.Group("/v1")|v1Router := router.Group("/api/v1")|' router/api-router.go && \
7
+ go mod download && \
8
  CGO_ENABLED=0 go build -o /app/bin/g2api -ldflags="-w -s" .
9
 
10