diff --git a/Dockerfile b/Dockerfile index 9c401c07..331de531 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN wget https://github.com/swaggo/swag/releases/download/v1.16.3/swag_1.16.3_Li WORKDIR /app/backend COPY ./ . -RUN swag init -g ./cmd/server/main.go -o ./api/swagger +RUN swag init -g ./cmd/server/main.go --parseDependency --parseInternal -o ./api/swagger RUN go mod tidy RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./bin/server ./cmd/server/main.go diff --git a/Makefile b/Makefile index 390be8d4..8bae219d 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ .PHONY: docs docs: - swag init -g ./cmd/server/main.go -o ./api/swagger + swag init -g ./cmd/server/main.go --parseDependency --parseInternal -o ./api/swagger .PHONY: build build: @@ -17,6 +17,6 @@ test: .PHONY: dev_run dev_run: - swag init -g ./cmd/server/main.go -o ./api/swagger + swag init -g ./cmd/server/main.go --parseDependency --parseInternal -o ./api/swagger go build ./cmd/server/main.go ./main