From 55ada257e9f45da1eb4d6b6074f38f5c10e170ed Mon Sep 17 00:00:00 2001 From: Daniel Harvey Date: Mon, 4 Sep 2023 12:12:34 -0600 Subject: [PATCH] fix: home node EACCESS issue --- typescript/Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/typescript/Dockerfile b/typescript/Dockerfile index 2694b80..31e586b 100644 --- a/typescript/Dockerfile +++ b/typescript/Dockerfile @@ -12,15 +12,14 @@ RUN apk add --no-cache curl && \ # Install cdk8s RUN npm install -g @types/node @types/jest typescript cdk8s-cli cdk8s cdk8s-plus-27 constructs jest ts-jest ts-node -RUN echo $HOME - -# Fix NPM cache folder permissions -RUN mkdir -p /.npm && chown -R 999:0 /.npm # Add your configuration file to the image COPY ./plugin.yaml /home/argocd/cmp-server/config/plugin.yaml +RUN echo $HOME +# Fix NPM cache folder permissions for /home/node +RUN mkdir -p /home/node/.npm && chown -R 999:0 /home/node/.npm ENV HOME=/home/node # Switch back to non-root user