From 3bbd148d33933f9198a0ebb63900529fa246bb20 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sat, 3 Dec 2022 10:01:40 -0600 Subject: [PATCH] Remove USER directive I forgot that not only does USER apply to the process launched inside the container, it also applies to any directives later in the build process, including those for images that inherit FROM this image. As such, those images would have to have a USER directive before running anything as root, e.g. `dnf install`, and then another USER directive to set the process user. Since this image isn't intended to be used directly there's really no point in setting USER here, then. --- Containerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Containerfile b/Containerfile index 4f84831..7538840 100644 --- a/Containerfile +++ b/Containerfile @@ -5,6 +5,4 @@ RUN groupadd -g 1000 jenkins \ COPY known-hosts-command.ssh.conf /etc/ssh/ssh_config.d/10-known-hosts-command.conf -USER jenkins:jenkins - CMD ["python3", "-c", "import signal;signal.pause()"]