X-Git-Url: https://gerrit.onap.org/r/gitweb?p=aai%2Fgizmo.git;a=blobdiff_plain;f=src%2Fmain%2Fdocker%2FDockerfile;h=b608423231d0f6c10fea3130d1048a151183c8ab;hp=036091e166e11c8e43079665afbea2a508739746;hb=46a43db79cd709a12c5f6f71acd1379a67061395;hpb=34c72a4d56324182b2e1d6f6fbaa508ca0953d2f diff --git a/src/main/docker/Dockerfile b/src/main/docker/Dockerfile index 036091e..b608423 100644 --- a/src/main/docker/Dockerfile +++ b/src/main/docker/Dockerfile @@ -12,11 +12,7 @@ ARG USERS_HOME=/opt/aaihome RUN mkdir -p $MICRO_HOME $USERS_HOME /logs \ && groupadd -g 492382 aaiadmin \ && useradd -r -u 341790 -g 492382 -ms /bin/sh -d $USERS_HOME/aaiadmin aaiadmin -##The following 2 lines are added to add the user to the sudoers group -##The script src\main\bin\start.sh could then optionally run the process as sudo user if an environment variable is set -## By default the sudo mode is disabled. -RUN usermod -aG sudo aaiadmin &&\ - echo 'aaiadmin ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers + WORKDIR $MICRO_HOME COPY /maven/gizmo/ . RUN chmod 755 $BIN_HOME/* \