Skip to content

Commit adf42ed

Browse files
author
Levent.Sagiroglu
committed
v1.3.2
1 parent 77f3162 commit adf42ed

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
FROM golang:1.10-alpine
2-
ARG VERSION=v1.0.0
3-
RUN apk add --update --no-cache git nano tar openssl gcc g++
2+
ARG VERSION=1.3.2
3+
RUN apk add --update --no-cache git nano curl tar openssl gcc g++
44
RUN go get github.com/mitchellh/gox
5-
RUN go get -u github.com/cloudflare/cfssl/cmd/...
5+
RUN mkdir -p /go/src/github.com/cloudflare/cfssl
6+
WORKDIR /go/src/github.com/cloudflare/cfssl/
7+
RUN curl -sSL https://github.com/cloudflare/cfssl/archive/${VERSION}.tar.gz | tar xz --strip 1
68
WORKDIR /go/src/github.com/cloudflare/cfssl/cmd
79
RUN CGO_ENABLED=1 gox -osarch="linux/amd64" -ldflags="-w" -output="/build/{{.Dir}}" ./...
8-
WORKDIR /build
10+
#----------------
911
FROM hasholding/alpine-base
1012
LABEL maintainer "Levent SAGIROGLU <[email protected]>"
11-
1213
VOLUME /shared
1314
COPY --from=0 /build/. /bin/
1415
WORKDIR /shared

0 commit comments

Comments
 (0)