mirror of
https://github.com/coaidev/coai.git
synced 2025-06-07 14:20:20 +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
|
# RUN go env -w GOPROXY=https://goproxy.cn,direct
|
||||||
ENV GOOS=linux GOARCH=amd64 GO111MODULE=on CGO_ENABLED=1
|
ENV GOOS=linux GOARCH=amd64 GO111MODULE=on CGO_ENABLED=1
|
||||||
|
|
||||||
|
# Install dependencies for cgo
|
||||||
|
RUN apk add --no-cache gcc musl-dev
|
||||||
|
|
||||||
# Build backend
|
# Build backend
|
||||||
RUN go install && \
|
RUN go install && \
|
||||||
go build .
|
go build .
|
||||||
|
Loading…
Reference in New Issue
Block a user