Merge pull request #6949 from dokku/1212-herokuish-fix

fix: set permissions correctly on all files in the builder-release process
This commit is contained in:
Jose Diaz-Gonzalez
2024-06-23 19:41:03 -04:00
committed by GitHub

View File

@@ -3,6 +3,6 @@ FROM $APP_IMAGE
ARG DOKKU_APP_USER herokuishuser
COPY --chown=$DOKKU_APP_USER 00-global-env.sh 01-app-env.sh /app/.profile.d/
RUN TRACE=$TRACE USER=$DOKKU_APP_USER HEROKUISH_DISABLE_CHOWN=false /exec true
RUN find "/app" \( \! -user "$DOKKU_APP_USER" -o \! -group "$DOKKU_APP_USER" \) -print0 | xargs -0 -r chown "$DOKKU_APP_USER:$DOKKU_APP_USER"
USER $DOKKU_APP_USER
ENV HEROKUISH_SETUIDGUID false