Skip to content

Commit

Permalink
v1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Levent.Sagiroglu committed May 12, 2018
1 parent 77f3162 commit adf42ed
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Dockerfile
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

0 comments on commit adf42ed

Please sign in to comment.