-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (19 loc) · 709 Bytes
/
Dockerfile
File metadata and controls
22 lines (19 loc) · 709 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM gliderlabs/alpine:3.2
MAINTAINER Daniel Hiltgen "<daniel.hiltgen@docker.com>"
# Try hard to get a minimal image to reduce footprint
RUN apk update && \
apk add go git gcc libc-dev libltdl libtool libgcc && \
export GOPATH=/go && \
go get -u github.com/cloudflare/cfssl/cmd/... && \
apk del go git gcc libc-dev libtool libgcc && \
mv /go/bin/* /bin/ && \
rm -rf /go/src/golang.org && \
rm -rf /go/src/github.com/GeertJohan && \
rm -rf /go/src/github.com/daaku && \
rm -rf /go/src/github.com/dgryski && \
rm -rf /go/src/github.com/kardianos && \
rm -rf /go/src/github.com/miekg
VOLUME [ "/etc/cfssl" ]
WORKDIR /etc/cfssl
EXPOSE 8888
ENTRYPOINT ["/bin/cfssl"]