Dockerfile.step-ca 557 B

123456789101112131415161718192021222324
  1. FROM golang:alpine AS builder
  2. RUN mkdir /src
  3. ADD . /src
  4. RUN apk add --no-cache make git curl && \
  5. cd /src && \
  6. make V=1 bin/step-ca
  7. FROM smallstep/step-cli:latest
  8. COPY --from=builder /src/bin/step-ca /usr/local/bin/step-ca
  9. ENV CONFIGPATH="/home/step/config/ca.json"
  10. ENV PWDPATH="/home/step/secrets/password"
  11. USER root
  12. RUN apk add --no-cache libcap && setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/step-ca
  13. USER step
  14. VOLUME ["/home/step"]
  15. STOPSIGNAL SIGTERM
  16. CMD exec /bin/sh -c "/usr/local/bin/step-ca --password-file $PWDPATH $CONFIGPATH"