diff --git a/Dockerfile b/Dockerfile index 82e6f87..709dce8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,6 +44,50 @@ RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* +# Add PHP repository and install PHP 8.1, 8.2, and 8.3 +RUN add-apt-repository -y ppa:ondrej/php \ + && apt-get update \ + && apt-get install -y --no-install-recommends \ + # PHP 8.1 with common extensions + php8.1 \ + php8.1-cli \ + php8.1-common \ + php8.1-curl \ + php8.1-gd \ + php8.1-mbstring \ + php8.1-xml \ + php8.1-zip \ + php8.1-bcmath \ + php8.1-intl \ + # PHP 8.2 with common extensions + php8.2 \ + php8.2-cli \ + php8.2-common \ + php8.2-curl \ + php8.2-gd \ + php8.2-mbstring \ + php8.2-xml \ + php8.2-zip \ + php8.2-bcmath \ + php8.2-intl \ + # PHP 8.3 with common extensions + php8.3 \ + php8.3-cli \ + php8.3-common \ + php8.3-curl \ + php8.3-gd \ + php8.3-mbstring \ + php8.3-xml \ + php8.3-zip \ + php8.3-bcmath \ + php8.3-intl \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + +# Install Composer globally +RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \ + && chmod +x /usr/local/bin/composer + # Install AWS CLI RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \ && unzip awscliv2.zip \