diff options
author | Instrumental <jonathan.gathman@att.com> | 2019-07-16 04:02:30 -0500 |
---|---|---|
committer | Instrumental <jonathan.gathman@att.com> | 2019-07-16 07:24:18 -0500 |
commit | 0e302ed774f4c371b9414fe99836836f775b688d (patch) | |
tree | 9953fe741c7ed8e4d93b989153caaf475fab34a4 /auth/docker/Dockerfile.core | |
parent | b5d91a686cede2fcf45e2b16e0141689d6c35a3f (diff) |
Reduce Docker Layers
Issue-ID: AAF-873
Change-Id: I590b5df27ce3266c2dac2200864ad5186da16114
Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth/docker/Dockerfile.core')
-rw-r--r-- | auth/docker/Dockerfile.core | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/auth/docker/Dockerfile.core b/auth/docker/Dockerfile.core index f74e9fbd..a8aa543b 100644 --- a/auth/docker/Dockerfile.core +++ b/auth/docker/Dockerfile.core @@ -30,5 +30,11 @@ COPY lib /opt/app/aaf/lib COPY bin /opt/app/aaf/bin COPY theme /opt/app/aaf/theme -RUN if [ -n "${DUSER}" ]; then chown -R ${DUSER}:${DUSER} /opt/app/aaf; fi +RUN mkdir -p /opt/app/osaaf &&\ + mkdir -p /opt/app/aaf/status &&\ + chmod 755 /opt/app/aaf/bin/* &&\ + if [ -n "${DUSER}" ]; then chown ${DUSER}:${DUSER} /opt/app/aaf/status \ + && chown ${DUSER}:${DUSER} /opt/app/osaaf \ + && chown -R ${DUSER}:${DUSER} /opt/app/aaf;\ + fi |