Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
sjkarthik authored Sep 7, 2023
1 parent e65e13e commit d988ccd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions mock-identity-system/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,25 +49,25 @@ ENV hsm_zip_file_path=${hsm_client_zip_path}
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=root

# 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

ENV hsm_local_dir_name=${hsm_local_dir}

# install packages and create user
RUN apt-get -y update \
&& 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
&& 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} \
&& 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}
Expand Down

0 comments on commit d988ccd

Please sign in to comment.