diff options
Diffstat (limited to 'aai-resources/src/main/docker/Dockerfile')
-rw-r--r-- | aai-resources/src/main/docker/Dockerfile | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/aai-resources/src/main/docker/Dockerfile b/aai-resources/src/main/docker/Dockerfile index be115e7..754c49a 100644 --- a/aai-resources/src/main/docker/Dockerfile +++ b/aai-resources/src/main/docker/Dockerfile @@ -1,5 +1,6 @@ FROM @aai.docker.namespace@/aai-common-@aai.base.image@:@aai.base.image.version@ +USER root RUN mkdir -p /opt/aaihome/aaiadmin /opt/aai/logroot/AAI-RES /opt/bulkprocess_load @@ -15,14 +16,14 @@ ENV AAI_BUILD_VERSION @aai.docker.version@ # 8447 is the important one to be used EXPOSE 8447 -RUN groupadd aaiadmin -g 1000 - -RUN adduser -u 1000 -h /opt/aaihome/aaiadmin -S -D -G aaiadmin -s /bin/bash aaiadmin - # Add the proper files into the docker image from your build WORKDIR /opt/app/aai-resources -RUN chown -R aaiadmin:aaiadmin /opt/app/aai-resources /etc/profile.d /opt/aai/logroot/AAI-RES /opt/bulkprocess_load +RUN chown -R aaiadmin:aaiadmin \ + /opt/app/aai-resources \ + /etc/profile.d \ + /opt/aai/logroot/AAI-RES \ + /opt/bulkprocess_load COPY --chown=aaiadmin:aaiadmin /maven/aai-resources/ . |