mirror of
https://github.com/Luzifer/nginx-sso.git
synced 2024-12-20 04:41:17 +00:00
Disable CGO during build
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
97b284034f
commit
83fcc4d0fe
1 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,8 @@ FROM golang:alpine as builder
|
|||
ADD . /go/src/github.com/Luzifer/nginx-sso
|
||||
WORKDIR /go/src/github.com/Luzifer/nginx-sso
|
||||
|
||||
ENV CGO_ENABLED=0
|
||||
|
||||
RUN set -ex \
|
||||
&& apk add --update git \
|
||||
&& go install -ldflags "-X main.version=$(git describe --tags || git rev-parse --short HEAD || echo dev)"
|
||||
|
|
Loading…
Reference in a new issue