mirror of
https://github.com/coaidev/coai.git
synced 2025-05-30 10:20:21 +09:00
fix: fix cgo runtime
This commit is contained in:
parent
b279f93226
commit
bb0d1ab4ff
@ -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 .
|
||||
|
Loading…
Reference in New Issue
Block a user