Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
32 lines
1.2 KiB
Docker
32 lines
1.2 KiB
Docker
FROM php:7.1.33-apache
|
|
|
|
LABEL maintainer="phithon <root@leavesongs.com>"
|
|
|
|
# Install PHP extensions
|
|
RUN apt-get update && apt-get install -y libpng-dev libjpeg-dev libmcrypt-dev default-mysql-client libzip-dev unzip wait-for-it && rm -rf /var/lib/apt/lists/* \
|
|
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
|
&& docker-php-ext-install gd
|
|
RUN docker-php-ext-install mysqli
|
|
RUN docker-php-ext-install mcrypt
|
|
RUN docker-php-ext-install zip
|
|
|
|
# Download package and extract to web volume
|
|
RUN curl -o /tmp/joomla.zip -SL https://github.com/joomla/joomla-cms/releases/download/3.7.0/Joomla_3.7.0-Stable-Full_Package.zip \
|
|
&& unzip /tmp/joomla.zip -d /var/www/html \
|
|
&& rm /tmp/joomla.zip \
|
|
&& chown -R www-data:www-data /var/www/html
|
|
|
|
RUN curl -sSL -o /usr/local/bin/composer https://getcomposer.org/download/2.2.21/composer.phar \
|
|
&& chmod +x /usr/local/bin/composer \
|
|
&& composer global require joomlatools/console:1.6.0 \
|
|
&& /root/.composer/vendor/bin/joomla -V
|
|
|
|
# Enable Apache Rewrite Module
|
|
RUN a2enmod rewrite
|
|
|
|
ENV PATH /root/.composer/vendor/bin:${PATH}
|
|
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
|
COPY .htaccess /var/www/html/.htaccess
|
|
ENTRYPOINT [ "bash", "/docker-entrypoint.sh" ]
|
|
CMD ["apache2-foreground"]
|