diff options
author | MichaelMorris <michael.morris@est.tech> | 2020-03-10 17:02:34 +0000 |
---|---|---|
committer | Ofir Sonsino <os0695@intl.att.com> | 2020-03-18 12:04:58 +0200 |
commit | 822061760575f4b1327bb0b8e73d266ec9fbdba0 (patch) | |
tree | 6c8eb1bcbe3458db2a2a8fc489251531d6417c19 /workflow-designer-ui | |
parent | cdff1c49539736b0bf16c119ba158ff776a3d5c9 (diff) |
Run pods as non-root user
Signed-off-by: MichaelMorris <michael.morris@est.tech>
Issue-ID: SDC-2798
Change-Id: Ic50b8663f278b97185c471a4113de29b3e53e023
Diffstat (limited to 'workflow-designer-ui')
-rw-r--r-- | workflow-designer-ui/docker/Dockerfile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/workflow-designer-ui/docker/Dockerfile b/workflow-designer-ui/docker/Dockerfile index 58130888..7a54b615 100644 --- a/workflow-designer-ui/docker/Dockerfile +++ b/workflow-designer-ui/docker/Dockerfile @@ -9,10 +9,11 @@ ARG ARTIFACT COPY org.onap.sdc.p12 org.onap.sdc.trust.jks ${JETTY_BASE}/etc/ -ADD ${ARTIFACT} ${JETTY_BASE}/webapps/ +ADD --chown=jetty:jetty ${ARTIFACT} ${JETTY_BASE}/webapps/ RUN chown -R jetty:jetty ${JETTY_BASE}/webapps ${JETTY_BASE}/etc/ -COPY startup.sh . +COPY --chown=jetty:jetty startup.sh . RUN chmod 744 startup.sh +USER jetty ENTRYPOINT [ "./startup.sh" ] |