File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -628,7 +628,8 @@ ENV USER=mig
628628ENV GROUP=mig
629629
630630RUN groupadd -g $GID $USER
631- RUN useradd -u $UID -g $GID -ms /bin/bash $USER
631+ # NOTE: use -l to avoid excessively large image (hadolint hint)
632+ RUN useradd -l -u $UID -g $GID -ms /bin/bash $USER
632633
633634# MiG environment
634635ENV MIG_ROOT=/home/$USER
@@ -703,8 +704,8 @@ RUN if [ ! -e "${CERT_DIR}/.persistent" ]; then \
703704 && chown $USER:$GROUP combined.pem \
704705 && chown $USER:$GROUP server.ca.pem \
705706 && ssh-keygen -y -f combined.pem > combined.pub \
706- && chown 0:0 *.key server.crt ca.pem \
707- && chmod 400 *.key server.crt ca.pem combined.pem server.ca.pem \
707+ && chown 0:0 ./ *.key server.crt ca.pem \
708+ && chmod 400 ./ *.key server.crt ca.pem combined.pem server.ca.pem \
708709 && openssl x509 -noout -fingerprint -sha256 -in combined.pem | \
709710 sed 's/.* Fingerprint=//g' > combined.pem.sha256 \
710711 && ssh-keygen -l -E md5 -f combined.pub | \
Original file line number Diff line number Diff line change @@ -587,7 +587,8 @@ ENV USER=mig
587587ENV GROUP=mig
588588
589589RUN groupadd -g $GID $USER
590- RUN useradd -u $UID -g $GID -ms /bin/bash $USER
590+ # NOTE: use -l to avoid excessively large image (hadolint hint)
591+ RUN useradd -l -u $UID -g $GID -ms /bin/bash $USER
591592
592593# MiG environment
593594ENV MIG_ROOT=/home/$USER
@@ -662,8 +663,8 @@ RUN if [ ! -e "${CERT_DIR}/.persistent" ]; then \
662663 && chown $USER:$GROUP combined.pem \
663664 && chown $USER:$GROUP server.ca.pem \
664665 && ssh-keygen -y -f combined.pem > combined.pub \
665- && chown 0:0 *.key server.crt ca.pem \
666- && chmod 400 *.key server.crt ca.pem combined.pem server.ca.pem \
666+ && chown 0:0 ./ *.key server.crt ca.pem \
667+ && chmod 400 ./ *.key server.crt ca.pem combined.pem server.ca.pem \
667668 && openssl x509 -noout -fingerprint -sha256 -in combined.pem | \
668669 sed 's/.* Fingerprint=//g' > combined.pem.sha256 \
669670 && ssh-keygen -l -E md5 -f combined.pub | \
You can’t perform that action at this time.
0 commit comments