From f7fcbcdb5d5084c54c818a4822eac29d45feae37 Mon Sep 17 00:00:00 2001 From: Martijn Pepping <111153+mpepping@users.noreply.github.com> Date: Mon, 20 Nov 2023 12:16:05 +0100 Subject: [PATCH] Use /bin/bash for the root user (#31) --- Dockerfile | 4 +++- Makefile | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 43c3afb..59b5476 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,7 @@ RUN apk add --no-cache \ openssh-client \ openssl \ procps \ + shadow \ skopeo \ socat \ sudo \ @@ -25,7 +26,8 @@ RUN apk add --no-cache \ ADD include/ / -RUN addgroup -g 1000 podshell && \ +RUN usermod -s /bin/bash root && \ + addgroup -g 1000 podshell && \ adduser -D -u 1000 -G podshell -s /bin/bash -g "Podshell User" podshell && \ su - podshell -c "/usr/local/bin/_add_binenv" diff --git a/Makefile b/Makefile index 10f5fa9..09b67c1 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # vim:ft=make: -APP_NAME="shell" +APP_NAME=ghcr.io/mpepping/podshell # HELP # This will output the help for each task @@ -20,7 +20,7 @@ clean: ## Remove the image docker rmi $(APP_NAME):latest start: ## Start the container - docker run -it --rm $(APP_NAME):latest --name podshell + docker run -it --rm --name podshell $(APP_NAME):latest stop: ## Stop the container docker rm -f podshell