mirror of
https://github.com/mpolden/echoip.git
synced 2025-07-17 22:43:36 +02:00
Build without cgo
This commit is contained in:
@ -2,7 +2,8 @@
|
||||
FROM golang:1.12-stretch AS build
|
||||
WORKDIR /go/src/github.com/mpolden/echoip
|
||||
COPY . .
|
||||
ENV GO111MODULE=on
|
||||
# Must build without cgo because libc is unavailable in runtime image
|
||||
ENV GO111MODULE=on CGO_ENABLED=0
|
||||
RUN make
|
||||
|
||||
# Run
|
||||
|
Reference in New Issue
Block a user