diff --git a/php/.gitlab-ci.yml b/php/.gitlab-ci.yml index bb8ad20..ee140a8 100644 --- a/php/.gitlab-ci.yml +++ b/php/.gitlab-ci.yml @@ -9,4 +9,9 @@ build_php82: <<: *build_template variables: - PHP_VERSION: "82" \ No newline at end of file + PHP_VERSION: "82" + +build_php84: + <<: *build_template + variables: + PHP_VERSION: "84" \ No newline at end of file diff --git a/php/Dockerfile.php84 b/php/Dockerfile.php84 new file mode 100644 index 0000000..a09ea60 --- /dev/null +++ b/php/Dockerfile.php84 @@ -0,0 +1,41 @@ +FROM registry.bobert.me/anthorob/coder-base:latest@sha256:ff48bd8e316d473090f664a69514bc1efc1badfed81e293f97fcb610be8530b3 + +USER root + +RUN apt-get update && \ + add-apt-repository ppa:ondrej/php && \ + apt-get update && \ + apt-get install -y --no-install-recommends \ + php8.4 \ + php8.4-cli \ + php8.4-common \ + php8.4-curl \ + php8.4-mbstring \ + php8.4-mysql \ + php8.4-xml \ + php8.4-zip \ + php8.4-bcmath \ + php8.4-soap \ + php8.4-readline \ + php8.4-intl \ + php8.4-opcache \ + php8.4-gd \ + php8.4-pgsql \ + php8.4-sqlite3 \ + php8.4-tokenizer \ + php8.4-fileinfo && \ + apt-get clean && rm -rf /var/lib/apt/lists/* + +RUN update-alternatives --install /usr/bin/php php /usr/bin/php8.4 84 && \ + update-alternatives --set php /usr/bin/php8.4 + +RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer + +USER coder + +ENV NVM_DIR=/home/coder/.nvm +RUN mkdir -p $NVM_DIR && \ + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash + + +WORKDIR /home/coder \ No newline at end of file