From f0542d096040c69b2ddb24d07c091a12e5895c7d Mon Sep 17 00:00:00 2001 From: sjkarthik <58928645+sjkarthik@users.noreply.github.com> Date: Mon, 4 Sep 2023 23:19:07 +0530 Subject: [PATCH] Update Dockerfile --- mock-identity-system/Dockerfile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/mock-identity-system/Dockerfile b/mock-identity-system/Dockerfile index ad8f465b..07eb2948 100644 --- a/mock-identity-system/Dockerfile +++ b/mock-identity-system/Dockerfile @@ -46,16 +46,16 @@ ENV artifactory_url_env=${artifactory_url} ENV hsm_zip_file_path=${hsm_client_zip_path} # can be passed during Docker build as build time environment for github branch to pickup configuration from. -ARG container_user=mosip +ARG container_user=root # can be passed during Docker build as build time environment for github branch to pickup configuration from. -ARG container_user_group=mosip +#ARG container_user_group=mosip # can be passed during Docker build as build time environment for github branch to pickup configuration from. -ARG container_user_uid=1001 +#ARG container_user_uid=1001 # can be passed during Docker build as build time environment for github branch to pickup configuration from. -ARG container_user_gid=1001 +#ARG container_user_gid=1001 ARG hsm_local_dir=hsm-client @@ -63,11 +63,11 @@ ENV hsm_local_dir_name=${hsm_local_dir} # install packages and create user RUN apt-get -y update \ -&& apt-get install -y unzip file sudo \ -&& groupadd -g ${container_user_gid} ${container_user_group} \ -&& useradd -u ${container_user_uid} -g ${container_user_group} -s /bin/sh -m ${container_user} \ -&& adduser ${container_user} sudo \ -&& echo "%sudo ALL=(ALL) NOPASSWD:/home/${container_user}/${hsm_local_dir}/install.sh" >> /etc/sudoers +&& apt-get install -y unzip file +#&& groupadd -g ${container_user_gid} ${container_user_group} \ +#&& useradd -u ${container_user_uid} -g ${container_user_group} -s /bin/sh -m ${container_user} \ +#&& adduser ${container_user} sudo \ +#&& echo "%sudo ALL=(ALL) NOPASSWD:/home/${container_user}/${hsm_local_dir}/install.sh" >> /etc/sudoers # set working directory for the user WORKDIR /home/${container_user}