From 8b0781904c0e98ec61595d108762b84588ec1c1e Mon Sep 17 00:00:00 2001 From: nikhila-aot Date: Thu, 5 Dec 2024 07:46:18 -0800 Subject: [PATCH] trying to change the user as outlined in the openshift error msg --- comsapi/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/comsapi/Dockerfile b/comsapi/Dockerfile index 25ff4efa..ca2819f2 100644 --- a/comsapi/Dockerfile +++ b/comsapi/Dockerfile @@ -7,12 +7,12 @@ WORKDIR ${APP_ROOT} # NPM Permission Fix RUN mkdir -p /.npm -RUN chown -R 1001:0 /.npm +RUN chown -R 1005690000:0 /.npm # Install Application COPY . ${APP_ROOT} -RUN chown -R 1001:0 ${APP_ROOT} -USER 1001 +RUN chown -R 1005690000:0 ${APP_ROOT} +USER 1005690000 WORKDIR ${APP_ROOT}/app RUN npm ci --omit=dev