Dockerfile 473 B

1234567891011121314151617181920
  1. FROM --platform=${BUILDPLATFORM} golang:1.20
  2. LABEL org.opencontainers.image.source https://github.com/cloudflare/cfssl
  3. LABEL org.opencontainers.image.description "Cloudflare's PKI toolkit"
  4. ARG TARGETOS
  5. ARG TARGETARCH
  6. WORKDIR /workdir
  7. COPY . /workdir
  8. RUN git clone https://github.com/cloudflare/cfssl_trust.git /etc/cfssl && \
  9. make clean && \
  10. GOOS=${TARGETOS} GOARCH=${TARGETARCH} make all && cp bin/* /usr/bin/
  11. EXPOSE 8888
  12. ENTRYPOINT ["cfssl"]
  13. CMD ["--help"]