updated docs and data to work on workflow

This commit is contained in:
pb
2024-02-19 17:56:33 +01:00
parent aafe6e9d79
commit f35c1f6190
13 changed files with 204 additions and 136 deletions

View File

@@ -4,7 +4,8 @@ WORKDIR /app
COPY . .
RUN go get github.com/beego/bee/v2 && go install github.com/beego/bee/v2@master
RUN go get github.com/beego/bee/v2 && \
go install github.com/beego/bee/v2@master
# Generating routers/commentsRouter.go
RUN bee generate routers
@@ -12,8 +13,8 @@ RUN bee generate routers
# Generating the swagger
RUN timeout 20 bee run -gendoc=true -downdoc=true -runmode=dev || :
RUN sed -i 's/http:\/\/127.0.0.1:8080\/swagger\/swagger.json/swagger.json/g' swagger/index.html
RUN sed -i 's/https:\/\/petstore.swagger.io\/v2\/swagger.json/swagger.json/g' swagger/index.html
RUN sed -i 's/http:\/\/127.0.0.1:8080\/swagger\/swagger.json/swagger.json/g' swagger/index.html && \
sed -i 's/https:\/\/petstore.swagger.io\/v2\/swagger.json/swagger.json/g' swagger/index.html
RUN ls -l routers