X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=deliveries%2FDockerfile.sdk;h=4757d8a405fa561b55edeb3318845550782750dc;hb=983c2d568a873060c046598daeebe481d043fb7a;hp=5f96aaad6499d311536d655261cd7815bb502264;hpb=5fe839bc8f5b536d5cb48297cf16c4d63e456413;p=portal.git diff --git a/deliveries/Dockerfile.sdk b/deliveries/Dockerfile.sdk index 5f96aaad..4757d8a4 100644 --- a/deliveries/Dockerfile.sdk +++ b/deliveries/Dockerfile.sdk @@ -38,6 +38,10 @@ RUN cd ${SDKCONTEXT} && unzip -q *.war && rm *.war VOLUME ${TOMCATHOME}/logs +# Switch to unprivileged user +RUN addgroup -g 1000 -S portal && adduser -u 1000 -S portal -G portal +USER portal + # Switch back to root WORKDIR /