-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Levent.Sagiroglu
committed
May 12, 2018
1 parent
77f3162
commit adf42ed
Showing
1 changed file
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <LSagiroglu@gmail.com>" | ||
|
||
VOLUME /shared | ||
COPY --from=0 /build/. /bin/ | ||
WORKDIR /shared |