fix: fix cgo runtime

This commit is contained in:
Zhang Minghan 2024-01-25 12:33:56 +08:00
parent b279f93226
commit bb0d1ab4ff

View File

@ -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 .