From 9a6cce2de129a14c1211c07a4e8fe8f2e324d473 Mon Sep 17 00:00:00 2001 From: Harunobu Ishii Date: Fri, 9 Aug 2024 12:00:14 -0400 Subject: [PATCH] Dockerfile modified --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9d60c31..d43408f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -46,6 +46,8 @@ ENV OMPI_ALLOW_RUN_AS_ROOT=1 ENV OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 ENV OMPI_MCA_routed=direct -# Allow SSH service to run in the background +# Create a new user 'ec2-user' for non-root operations +RUN useradd -m ec2-user +USER ec2-user EXPOSE 22 CMD ["/usr/sbin/sshd", "-D"] \ No newline at end of file