mirror of
https://github.com/Luzifer/nginx-sso.git
synced 2024-12-20 12:51: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
|
ADD . /go/src/github.com/Luzifer/nginx-sso
|
||||||
WORKDIR /go/src/github.com/Luzifer/nginx-sso
|
WORKDIR /go/src/github.com/Luzifer/nginx-sso
|
||||||
|
|
||||||
|
ENV CGO_ENABLED=0
|
||||||
|
|
||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
&& apk add --update git \
|
&& apk add --update git \
|
||||||
&& go install -ldflags "-X main.version=$(git describe --tags || git rev-parse --short HEAD || echo dev)"
|
&& go install -ldflags "-X main.version=$(git describe --tags || git rev-parse --short HEAD || echo dev)"
|
||||||
|
|
Loading…
Reference in a new issue