From 06a55c2009aeffce44824ee54ff058a32ee5b19d Mon Sep 17 00:00:00 2001 From: "taekyu.kang" Date: Mon, 4 Mar 2024 16:19:04 +0900 Subject: [PATCH] fix. build error --- Dockerfile | 2 +- Makefile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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