From db010af222c662e254249b6f989e5c7d49982d94 Mon Sep 17 00:00:00 2001 From: Justin Bertrand Date: Wed, 16 Oct 2024 09:43:20 -0400 Subject: [PATCH] feat(dockerfile): provide the group with the same file permissions as the user. --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 2e898dc89..023894075 100644 --- a/Dockerfile +++ b/Dockerfile @@ -153,6 +153,10 @@ COPY --chown=$UID:$GID --from=build /app/package.json /app/package.json # copy backend files COPY --chown=$UID:$GID ./backend . +# provide group with same permissions as user +# allows running in OpenShift +RUN chmod -R g=u /app $HOME + EXPOSE 8080 HEALTHCHECK CMD curl --silent --fail http://localhost:${PORT:-8080}/health | jq -ne 'input.status == true' || exit 1