File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -79,12 +79,15 @@ USER "$USERNAME"
7979WORKDIR "$APP_HOME"
8080
8181# Copy everything from the builder image
82- COPY --link -- chown="$USERNAME:$USERNAME" --chmod=700 . .
83- COPY --from=builder --chown="$USERNAME:$USERNAME" --chmod=700 "$APP_HOME/public/" "$APP_HOME/public/"
84- COPY --from=builder --chown="$USERNAME:$USERNAME" --chmod=700 "$APP_HOME/tmp/" "$APP_HOME/tmp/"
85- COPY --from=builder --chown="$USERNAME:$USERNAME" --chmod=700 "$APP_HOME/vendor/" "$APP_HOME/vendor/"
82+ COPY --chown="$USERNAME:$USERNAME" . .
83+ COPY --from=builder --chown="$USERNAME:$USERNAME" "$APP_HOME/public/" "$APP_HOME/public/"
84+ COPY --from=builder --chown="$USERNAME:$USERNAME" "$APP_HOME/tmp/" "$APP_HOME/tmp/"
85+ COPY --from=builder --chown="$USERNAME:$USERNAME" "$APP_HOME/vendor/" "$APP_HOME/vendor/"
8686
87+ # Set permissions (700 for security) and create symlink
88+ # Note: Permissions set via RUN instead of COPY --chmod for Heroku compatibility
8789USER root
90+ RUN chmod -R 700 "$APP_HOME"
8891RUN ln -s /usr/lib/*-linux-gnu/libjemalloc.so.2 /usr/lib/libjemalloc.so.2
8992USER "$USERNAME"
9093
You can’t perform that action at this time.
0 commit comments