From b2c193f5210551ce6e58bf1277ca8eec3cf196d6 Mon Sep 17 00:00:00 2001 From: Ronaldo Macapobre Date: Tue, 27 Aug 2024 16:52:53 +0000 Subject: [PATCH] Run npm install as root user --- docker/web/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docker/web/Dockerfile b/docker/web/Dockerfile index c3a62174..7fb0bd68 100644 --- a/docker/web/Dockerfile +++ b/docker/web/Dockerfile @@ -3,11 +3,10 @@ ARG WEB_BASE_HREF=/ FROM centos/nodejs-${node_version}-centos7:${node_version} ENV WEB_BASE_HREF=${WEB_BASE_HREF} ENV WEB1_BASE_HREF=${WEB_BASE_HREF} -RUN ls -la WORKDIR /opt/app-root/src COPY ../../web . RUN echo "$WEB1_BASE_HREF" RUN echo "$WEB_BASE_HREF" -RUN npm install USER root +RUN npm install RUN npm run build \ No newline at end of file