diff options
author | Sunder Tattavarada <statta@research.att.com> | 2020-04-06 19:12:33 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-04-06 19:12:33 +0000 |
commit | a72e7c1fabd448068cd3dbe08a22fa491e81eafc (patch) | |
tree | 2039080cc08c4999794a8281f952c364bf080f9e | |
parent | 9ddf2819db0994ddbaab97159e78b1758718cd2b (diff) | |
parent | fa08f47c5fd09a55ff33cf9e3fe857dcf41ff30a (diff) |
Merge "Migrate Dockerfile.widgetms to unprivileged user" into release-3.2.0
-rw-r--r-- | deliveries/Dockerfile.widgetms | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/deliveries/Dockerfile.widgetms b/deliveries/Dockerfile.widgetms index 82a2e4c6..8f4b1072 100644 --- a/deliveries/Dockerfile.widgetms +++ b/deliveries/Dockerfile.widgetms @@ -14,7 +14,9 @@ RUN sh -c 'touch /app.jar' # Launch script COPY start-wms.sh / +# Switch to unprivileged user RUN addgroup -g 1000 -S portal && adduser -u 1000 -S portal -G portal && mkdir logs / && chown -R portal:portal /start-wms.sh /tmp /etc/ssl/certs/java /logs && chmod -R 755 /start-wms.sh /etc/ssl/certs/java /logs /tmp +USER portal # Define default command CMD /start-wms.sh |