2022-03-09 02:39:29 +13:00
|
|
|
FROM gitpod/workspace-full
|
|
|
|
|
2022-03-09 05:39:15 +13:00
|
|
|
# Disable current PHP installation
|
2022-03-09 05:33:08 +13:00
|
|
|
RUN sudo a2dismod php7.4
|
|
|
|
RUN sudo a2dismod mpm_prefork
|
2022-03-09 05:39:15 +13:00
|
|
|
|
|
|
|
# Install apache2 (PHP install requires to do this first)
|
2022-03-09 05:33:08 +13:00
|
|
|
RUN sudo apt --yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install apache2
|
2022-03-09 05:39:15 +13:00
|
|
|
|
|
|
|
# Update to PHP 8.0 with unattended installation
|
2022-03-09 05:33:08 +13:00
|
|
|
RUN sudo apt --yes install software-properties-common && sudo add-apt-repository ppa:ondrej/php -y
|
2022-03-09 03:06:02 +13:00
|
|
|
RUN sudo apt update
|
2022-03-09 05:33:08 +13:00
|
|
|
RUN sudo apt --yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install php8.0
|