Dockerfile.alpine 470 B

123456789101112131415161718192021
  1. FROM golang:1.16.15-alpine3.15@sha256:9743f230f26d1e300545f0330fd4a514f554c535d967563ee77bf634906502b6 as builder
  2. WORKDIR /workdir
  3. COPY . /workdir
  4. RUN set -x && \
  5. apk --no-cache add git gcc libc-dev make
  6. RUN git clone https://github.com/cloudflare/cfssl_trust.git /etc/cfssl && \
  7. make clean && \
  8. make all
  9. FROM alpine:3.11
  10. COPY --from=builder /etc/cfssl /etc/cfssl
  11. COPY --from=builder /workdir/bin/ /usr/bin
  12. EXPOSE 8888
  13. ENTRYPOINT ["cfssl"]
  14. CMD ["--help"]