Skip to content

Commit

Permalink
fix: fix cgo runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
zmh-program committed Jan 25, 2024
1 parent b279f93 commit bb0d1ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ COPY . .
# RUN go env -w GOPROXY=https://goproxy.cn,direct
ENV GOOS=linux GOARCH=amd64 GO111MODULE=on CGO_ENABLED=1

# Install dependencies for cgo
RUN apk add --no-cache gcc musl-dev

# Build backend
RUN go install && \
go build .
Expand Down

0 comments on commit bb0d1ab

Please sign in to comment.