Просмотр исходного кода

Don't start as root and drop privs, run as step and use sudo to install the CA cert.

Carl Tashian 10 месяцев назад
Родитель
Сommit
e7cbb0d49c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      docker/Dockerfile

+ 1 - 1
docker/Dockerfile

@@ -13,7 +13,7 @@ FROM smallstep/step-cli:latest
 
 USER root
 RUN apk add --no-cache sudo \
-    && echo "step ALL=(root) NOPASSWD: /bin/tee -a /etc/ssl/certs/ca-certificates.crt" >> /etc/sudoers.d/step \
+    && echo "step ALL=(root) NOPASSWD: /usr/bin/tee -a /etc/ssl/certs/ca-certificates.crt" >> /etc/sudoers.d/step \
     && chmod 0440 /etc/sudoers.d/step
 
 COPY --from=builder /src/bin/step-ca /usr/local/bin/step-ca