From a88885b8d529feff751f74c81bd788f8126b433b Mon Sep 17 00:00:00 2001 From: sakthi-aot Date: Mon, 11 Mar 2024 15:21:53 -0600 Subject: [PATCH] update for DF --- app/caseflow_core/microservices/dms/Dockerfile | 5 +++++ app/caseflow_core/microservices/gateway/Dockerfile | 5 +++++ app/caseflow_core/microservices/lob/Dockerfile | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/app/caseflow_core/microservices/dms/Dockerfile b/app/caseflow_core/microservices/dms/Dockerfile index 63b0f077c..e617200ca 100644 --- a/app/caseflow_core/microservices/dms/Dockerfile +++ b/app/caseflow_core/microservices/dms/Dockerfile @@ -21,5 +21,10 @@ COPY --from=builder /app/dist ./dist # Expose port EXPOSE 7002 7003 +# Grant access to group 0 to allow npm v9 to work +# See: https://docs.openshift.com/container-platform/4.11/openshift_images/create-images.html#use-uid_create-images +RUN chgrp -R 0 /app && \ + chmod -R g=u /app + # Start up command, with max heap size as 50Megs ENTRYPOINT ["node", "--max-old-space-size=1024","dist/main"] \ No newline at end of file diff --git a/app/caseflow_core/microservices/gateway/Dockerfile b/app/caseflow_core/microservices/gateway/Dockerfile index 29114e92b..86b5e34a3 100644 --- a/app/caseflow_core/microservices/gateway/Dockerfile +++ b/app/caseflow_core/microservices/gateway/Dockerfile @@ -23,5 +23,10 @@ COPY --from=builder /app/dist ./dist # Expose port EXPOSE 7000 +# Grant access to group 0 to allow npm v9 to work +# See: https://docs.openshift.com/container-platform/4.11/openshift_images/create-images.html#use-uid_create-images +RUN chgrp -R 0 /app && \ + chmod -R g=u /app + # Start up command, with max heap size as 50Megs ENTRYPOINT ["node", "--max-old-space-size=50","dist/main"] diff --git a/app/caseflow_core/microservices/lob/Dockerfile b/app/caseflow_core/microservices/lob/Dockerfile index ae78304aa..3cf9e14f7 100644 --- a/app/caseflow_core/microservices/lob/Dockerfile +++ b/app/caseflow_core/microservices/lob/Dockerfile @@ -23,5 +23,10 @@ COPY --from=builder /app/dist ./dist # Expose port EXPOSE 8000 +# Grant access to group 0 to allow npm v9 to work +# See: https://docs.openshift.com/container-platform/4.11/openshift_images/create-images.html#use-uid_create-images +RUN chgrp -R 0 /app && \ + chmod -R g=u /app + # Start up command, with max heap size as 50Megs ENTRYPOINT ["node", "--max-old-space-size=50","dist/main"] \ No newline at end of file