File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
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++
4
4
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
6
8
WORKDIR /go/src/github.com/cloudflare/cfssl/cmd
7
9
RUN CGO_ENABLED=1 gox -osarch="linux/amd64" -ldflags="-w" -output="/build/{{.Dir}}" ./...
8
- WORKDIR /build
10
+ # ----------------
9
11
FROM hasholding/alpine-base
10
12
LABEL maintainer
"Levent SAGIROGLU <[email protected] >"
11
-
12
13
VOLUME /shared
13
14
COPY --from=0 /build/. /bin/
14
15
WORKDIR /shared
You can’t perform that action at this time.
0 commit comments