1
0
Fork 0
mirror of https://github.com/Luzifer/nginx-sso.git synced 2024-12-20 04:41:17 +00:00

Enable CGO for plugin support

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-02-22 00:41:36 +01:00
parent e9bff08810
commit 27ee7778c3
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -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