diff options
Diffstat (limited to 'src/main/docker/Dockerfile')
-rw-r--r-- | src/main/docker/Dockerfile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/docker/Dockerfile b/src/main/docker/Dockerfile index 343ed4d..b164907 100644 --- a/src/main/docker/Dockerfile +++ b/src/main/docker/Dockerfile @@ -32,6 +32,12 @@ RUN chmod 755 $BIN_HOME/* RUN mkdir /opt/aaihome && \ groupadd -g 492382 aaiadmin && \ useradd -r -u 341790 -g 492382 -ms /bin/sh -d /opt/aaihome/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. + usermod -aG sudo aaiadmin &&\ + echo 'aaiadmin ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers && \ chown -R aaiadmin:aaiadmin $MICRO_HOME &&\ mkdir /logs && \ chown -R aaiadmin:aaiadmin /logs |