Skip to content

Commit

Permalink
Update Dockerfile to use PHP_VERSION instead of BUILD_VERSION
Browse files Browse the repository at this point in the history
In the Dockerfile, the environment variable for building the PHP in Docker has been changed from BUILD_VERSION to PHP_VERSION. This update includes changes to the installation commands and the linking commands.
  • Loading branch information
nbejansen committed May 2, 2024
1 parent 964492a commit 060acee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ COPY ./php/runtime/packages /runtime/packages
RUN /runtime/bin/install gnupg2 software-properties-common less msmtp unzip \
&& add-apt-repository ppa:ondrej/php \
&& mkdir -p /etc/php/current \
&& ln -sf /etc/php/current /etc/php/${BUILD_VERSION} \
&& /runtime/bin/install $(cat /runtime/packages/php-${BUILD_VERSION}.txt) \
&& ln -sf /etc/php/current /etc/php/${PHP_VERSION} \
&& /runtime/bin/install $(cat /runtime/packages/php-${PHP_VERSION}.txt) \
&& /runtime/bin/rchown /etc/php/current

COPY --chown=$RUNTIME_UID:$RUNTIME_GID ./php /
Expand All @@ -73,8 +73,8 @@ USER root

ENV RUNTIME_VERBOSITY=1

RUN /runtime/bin/install php${BUILD_VERSION}-fpm libfcgi-bin \
&& ln -sf /usr/sbin/php-fpm${BUILD_VERSION} /usr/sbin/php-fpm \
RUN /runtime/bin/install php${PHP_VERSION}-fpm libfcgi-bin \
&& ln -sf /usr/sbin/php-fpm${PHP_VERSION} /usr/sbin/php-fpm \
&& rm /etc/php/current/fpm/pool.d/www.conf \
&& /runtime/bin/rchown /etc/php/current

Expand Down
Empty file modified src/runtime/runtime/bin/install
100644 → 100755
Empty file.
Empty file modified src/runtime/runtime/bin/rchown
100644 → 100755
Empty file.

0 comments on commit 060acee

Please sign in to comment.