diff --git a/registration-processor/registration-processor-external-integration-service/Dockerfile b/registration-processor/registration-processor-external-integration-service/Dockerfile index 80e7c48571..73337fcbe0 100644 --- a/registration-processor/registration-processor-external-integration-service/Dockerfile +++ b/registration-processor/registration-processor-external-integration-service/Dockerfile @@ -54,11 +54,12 @@ ARG container_user_uid=1002 # can be passed during Docker build as build time environment for github branch to pickup configuration from. ARG container_user_gid=1001 -# install packages and create user RUN apk -q update \ -&& apk add -q unzip wget \ +&& apk add -q unzip sudo findutils \ && addgroup -g ${container_user_gid} ${container_user_group} \ -&& adduser -s /bin/sh -u ${container_user_uid} -G ${container_user_group} -h /home/${container_user} --disabled-password ${container_user} +&& adduser -s /bin/sh -u ${container_user_uid} -G ${container_user_group} -h /home/${container_user} --disabled-password ${container_user} \ +&& addgroup sudo \ +&& adduser ${container_user} sudo # set working directory for the user WORKDIR /home/${container_user} diff --git a/registration-processor/registration-processor-external-stage/Dockerfile b/registration-processor/registration-processor-external-stage/Dockerfile index 4d2c7422df..f445971d43 100644 --- a/registration-processor/registration-processor-external-stage/Dockerfile +++ b/registration-processor/registration-processor-external-stage/Dockerfile @@ -57,11 +57,12 @@ ARG container_user_uid=1002 # can be passed during Docker build as build time environment for github branch to pickup configuration from. ARG container_user_gid=1001 -# install packages and create user RUN apk -q update \ -&& apk add -q unzip wget \ +&& apk add -q unzip sudo findutils \ && addgroup -g ${container_user_gid} ${container_user_group} \ -&& adduser -s /bin/sh -u ${container_user_uid} -G ${container_user_group} -h /home/${container_user} --disabled-password ${container_user} +&& adduser -s /bin/sh -u ${container_user_uid} -G ${container_user_group} -h /home/${container_user} --disabled-password ${container_user} \ +&& addgroup sudo \ +&& adduser ${container_user} sudo${container_user} # set working directory for the user WORKDIR /home/${container_user}