Skip to content

Commit

Permalink
Re-Create /usr/bin/php
Browse files Browse the repository at this point in the history
As of PHP8 under Alpine `/usr/bin/php`  does not exist anymore in order to allow co-existence with `php7` packages.
The composer therefore fails when trying to execute `php`.

Weirdly this issue first surfaced with PR mriedmann#285 but not earlier - not sure why.

See https://gitlab.alpinelinux.org/alpine/aports/-/issues/12308
  • Loading branch information
dantefromhell authored Dec 18, 2023
1 parent f283834 commit 437b4cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ ARG HUMHUB_VERSION
ARG BUILD_DEPS

RUN apk add --no-cache --update $BUILD_DEPS && \
ln -s /usr/bin/php81 /usr/bin/php && \
rm -rf /var/cache/apk/*

COPY --from=builder-composer /usr/bin/composer /usr/bin/composer
Expand Down

0 comments on commit 437b4cb

Please sign in to comment.