Spaces:
Paused
Paused
hf
Browse files- Dockerfile +0 -1
Dockerfile
CHANGED
|
@@ -13,7 +13,6 @@ WORKDIR /build
|
|
| 13 |
# 安装 git
|
| 14 |
RUN apk add --no-cache git \
|
| 15 |
&& git clone https://github.com/deanxv/genspark2api.git . \
|
| 16 |
-
&& sed -i 's|router.Group("/v1")|router.Group("/hf/v1")|' router/api-router.go \
|
| 17 |
&& 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 \
|
| 18 |
&& go mod download && go build -o /genspark2api
|
| 19 |
|
|
|
|
| 13 |
# 安装 git
|
| 14 |
RUN apk add --no-cache git \
|
| 15 |
&& git clone https://github.com/deanxv/genspark2api.git . \
|
|
|
|
| 16 |
&& 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 \
|
| 17 |
&& go mod download && go build -o /genspark2api
|
| 18 |
|