Skip to content

Commit cfd08a9

Browse files
author
farhoud.m7
committed
Update Dockerfile to install swaggo dependency before initializing swagger documentation
1 parent 0875be4 commit cfd08a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN go mod download
1313
COPY . .
1414

1515
# Run swagger
16-
RUN swag init -g main.go
16+
RUN go install github.com/swaggo/swag/cmd/swag@latest && swag init -g main.go
1717

1818
# Build the application
1919
RUN CGO_ENABLED=1 GOOS=linux go build -o main .

0 commit comments

Comments
 (0)