feat(dockerfile): provide the group with the same file permissions as the user.

This commit is contained in:
Justin Bertrand 2024-10-16 09:43:20 -04:00
parent e8babe62bc
commit db010af222

View File

@ -153,6 +153,10 @@ COPY --chown=$UID:$GID --from=build /app/package.json /app/package.json
# copy backend files # copy backend files
COPY --chown=$UID:$GID ./backend . 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 EXPOSE 8080
HEALTHCHECK CMD curl --silent --fail http://localhost:${PORT:-8080}/health | jq -ne 'input.status == true' || exit 1 HEALTHCHECK CMD curl --silent --fail http://localhost:${PORT:-8080}/health | jq -ne 'input.status == true' || exit 1