Dockerfile 625 B

123456789101112131415161718192021
  1. FROM smallstep/step-cli:latest
  2. ENV CA_NAME="Autocert"
  3. ENV CA_DNS="ca.step.svc.cluster.local,127.0.0.1"
  4. ENV CA_ADDRESS=":4443"
  5. ENV CA_DEFAULT_PROVISIONER="admin"
  6. ENV CA_URL="ca.step.svc.cluster.local"
  7. ENV KUBE_LATEST_VERSION="v1.13.2"
  8. USER root
  9. RUN curl -L https://storage.googleapis.com/kubernetes-release/release/${KUBE_LATEST_VERSION}/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl \
  10. && chmod +x /usr/local/bin/kubectl
  11. RUN apk --update add expect
  12. RUN apk --update add jq
  13. COPY autocert.sh /home/step/
  14. COPY ct.json /home/step/
  15. COPY ca /home/step/ca/
  16. RUN chmod +x /home/step/autocert.sh
  17. CMD ["/home/step/autocert.sh"]