ltxlong commited on
Commit
760689f
·
verified ·
1 Parent(s): e18c1fe

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -16,7 +16,7 @@ WORKDIR /build
16
  RUN apk add --no-cache git \
17
  && git clone https://github.com/deanxv/genspark2api.git . \
18
  && sed -i 's|router.Group("/v1")|router.Group("/hf/v1")|' router/api-router.go \
19
- && sed -i 's|router.GET("/")|router.GET("/", func(c *gin.Context) { if c.Request.Method == "HEAD" { c.Status(200); return }; c.String(200, "Hello World!") })|' router/api-router.go \
20
  && go mod download && go build -o /genspark2api
21
 
22
  # 使用 Alpine 镜像作为最终镜像
 
16
  RUN apk add --no-cache git \
17
  && git clone https://github.com/deanxv/genspark2api.git . \
18
  && sed -i 's|router.Group("/v1")|router.Group("/hf/v1")|' router/api-router.go \
19
+ && sed -i 's|router.GET("/")|router.GET("/", func(c *gin.Context) { c.String(200, "Hello World!") })|' router/api-router.go \
20
  && go mod download && go build -o /genspark2api
21
 
22
  # 使用 Alpine 镜像作为最终镜像