FROM ubuntu:22.04 ENV TZ="Asia/Jakarta" #ENV TZ="Europe/Zurich" ARG COMPOSER_TOKEN ENV COMPOSER_TOKEN=${COMPOSER_TOKEN} ENV DEBIAN_FRONTEND=noninteractive
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
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
RUN a2enmod php8.4 && a2enmod rewrite
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
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
RUN apt-get install -y git RUN git --version
RUN mkdir -p /etc/supervisor/conf.d
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
CMD ["/usr/bin/supervisord", "-n"]
Content type
Image
Digest
sha256:c9ca82995…
Size
230.5 MB
Last updated
11 months ago
docker pull itvci/apache2-php84:tagname