Dockerfile.minimal 754 B

12345678910111213141516171819202122232425262728293031
  1. FROM golang:1.9.2-alpine3.6
  2. ENV GOPATH /go
  3. ENV USER root
  4. COPY . /go/src/github.com/cloudflare/cfssl
  5. RUN set -x && \
  6. apk --no-cache add git gcc libc-dev && \
  7. go get github.com/cloudflare/cfssl_trust/... && \
  8. go get github.com/GeertJohan/go.rice/rice && \
  9. cd /go/src/github.com/cloudflare/cfssl && rice embed-go -i=./cli/serve && \
  10. mkdir bin && cd bin && \
  11. go build ../cmd/cfssl && \
  12. go build ../cmd/cfssljson && \
  13. go build ../cmd/mkbundle && \
  14. go build ../cmd/multirootca && \
  15. echo "Build complete."
  16. FROM alpine:3.6
  17. COPY --from=0 /go/src/github.com/cloudflare/cfssl_trust /etc/cfssl
  18. COPY --from=0 /go/src/github.com/cloudflare/cfssl/bin/ /usr/bin
  19. VOLUME [ "/etc/cfssl" ]
  20. WORKDIR /etc/cfssl
  21. EXPOSE 8888
  22. ENTRYPOINT ["cfssl"]
  23. CMD ["--help"]