Spaces:
Paused
Paused
hf
Browse files12 unmodified lines1314151617181912 unmodified lines# 安装 gitRUN apk add --no-cache git \&& git clone https://github.com/deanxv/genspark2api.git . \&& sed -i 's|router.Group("/v1")|router.Group("/hf/v1")|' router/api-router.go \&& 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 \&& go mod download && go build -o /genspark2api12 unmodified lines13141516171812 unmodified lines# 安装 gitRUN apk add --no-cache git \&& git clone https://github.com/deanxv/genspark2api.git . \&& 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 \&& go mod download && go build -o /genspark2api
Dockerfile-1