Skip to content

Commit

Permalink
Merge pull request #507 from kurokobo/swagger
Browse files Browse the repository at this point in the history
fix: disable cgo for swagger
  • Loading branch information
denverquane committed Jul 20, 2023
2 parents e6ac279 + 35a9300 commit 632d2ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN go install github.com/swaggo/swag/cmd/swag@v1.8.12
# Import the code from the context.
COPY ./ ./
# Generate API documentation
RUN swag init --parseDependency true
RUN CGO_ENABLED=0 swag init --parseDependency true

# Build the executable to `/app`. Mark the build as statically linked.
# hadolint ignore=SC2155
Expand Down

0 comments on commit 632d2ad

Please sign in to comment.