mirror of
https://github.com/Luzifer/nginx-sso.git
synced 2024-12-20 12:51:17 +00:00
Enable CGO for plugin support
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
e9bff08810
commit
27ee7778c3
1 changed files with 4 additions and 2 deletions
|
@ -3,10 +3,12 @@ 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
|
||||
ENV CGO_ENABLED=1
|
||||
|
||||
RUN set -ex \
|
||||
&& apk add --update git \
|
||||
&& apk add --update \
|
||||
build-base \
|
||||
git \
|
||||
&& go install -ldflags "-X main.version=$(git describe --tags || git rev-parse --short HEAD || echo dev)"
|
||||
|
||||
FROM alpine:3.8
|
||||
|
|
Loading…
Reference in a new issue