diff --git a/Dockerfile b/Dockerfile index 2fd2da4..62fbcf1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,15 @@ FROM golang:1.10-alpine -ARG VERSION=v1.0.0 -RUN apk add --update --no-cache git nano tar openssl gcc g++ +ARG VERSION=1.3.2 +RUN apk add --update --no-cache git nano curl tar openssl gcc g++ RUN go get github.com/mitchellh/gox -RUN go get -u github.com/cloudflare/cfssl/cmd/... +RUN mkdir -p /go/src/github.com/cloudflare/cfssl +WORKDIR /go/src/github.com/cloudflare/cfssl/ +RUN curl -sSL https://github.com/cloudflare/cfssl/archive/${VERSION}.tar.gz | tar xz --strip 1 WORKDIR /go/src/github.com/cloudflare/cfssl/cmd RUN CGO_ENABLED=1 gox -osarch="linux/amd64" -ldflags="-w" -output="/build/{{.Dir}}" ./... -WORKDIR /build +#---------------- FROM hasholding/alpine-base LABEL maintainer "Levent SAGIROGLU " - VOLUME /shared COPY --from=0 /build/. /bin/ WORKDIR /shared \ No newline at end of file