Sign inSign up

itvci/apache2-php84

By itvci

•Updated 11 months ago

apache2-php84

Image
0

137

itvci/apache2-php84 repository overview

⁠Ubuntu 22.04 sebagai infrastruktur

FROM ubuntu:22.04 ENV TZ="Asia/Jakarta" #ENV TZ="Europe/Zurich" ARG COMPOSER_TOKEN ENV COMPOSER_TOKEN=${COMPOSER_TOKEN} ENV DEBIAN_FRONTEND=noninteractive

⁠Update & install dependencies php8, apache

RUN apt-get update && apt-get install -y
apache2
software-properties-common
openssh-server
cron
supervisor
&& add-apt-repository ppa:ondrej/php -y
&& apt-get update

⁠Install PHP 8.4 + extensions

RUN apt-get install -y
php8.4
libapache2-mod-php8.4
php8.4-cli
php8.4-intl
php8.4-cli
php8.4-common
php8.4-mysql
php8.4-zip
php8.4-gd
php8.4-mbstring
php8.4-curl
php8.4-xml
php8.4-bcmath

⁠Enable Apache2 modules

RUN a2enmod php8.4 && a2enmod rewrite

⁠Configure SSH

RUN mkdir /var/run/sshd && echo 'root:root' | chpasswd EXPOSE 22 80

RUN apt-get update
&& apt-get --yes --no-install-recommends install libxml2-dev libgmp-dev zip npm zlib1g-dev libpng-dev libonig-dev git unzip tzdata
&& npm install --global yarn

⁠Install composer

COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer RUN mkdir /root/.composer && echo "${COMPOSER_TOKEN}" > /root/.composer/auth.json

RUN apt-get install -y curl wget nano mcrypt RUN apt-get install -yq iputils-ping

⁠Install Git

RUN apt-get install -y git RUN git --version

⁠Supervisor config

RUN mkdir -p /etc/supervisor/conf.d

COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf

⁠Apache foreground fix

RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf

CMD ["/usr/bin/supervisord", "-n"]

Tag summary

Content type

Image

Digest

sha256:c9ca82995…

Size

230.5 MB

Last updated

11 months ago

docker pull itvci/apache2-php84:tagname