1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-10 11:10:27 +02:00
dockerfiles/joomla/Dockerfile
2017-05-08 07:05:07 +08:00

25 lines
824 B
Docker

#
# Dockerfile for Joomla
#
FROM php:5.6-apache
MAINTAINER kev<noreply@easypi.pro>
RUN set -xe \
&& apt-get update && apt-get install -y curl unzip bzip2 libpq-dev libpng12-dev libjpeg-dev \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install gd mysqli pgsql
ENV JOOMLA_VERSION 3.6.2
ENV JOOMLA_URL https://github.com/joomla/joomla-cms/releases/download/${JOOMLA_VERSION}/Joomla_${JOOMLA_VERSION}-Stable-Full_Package.tar.gz
ENV JOOMLA_MD5 496edf7dd1f171711b2fcd72f11523bc
ENV JOOMLA_FILE Joomla.tar.gz
RUN set -xe \
&& curl -fSL ${JOOMLA_URL} -o ${JOOMLA_FILE} \
&& echo "${JOOMLA_MD5} ${JOOMLA_FILE}" | md5sum -c - \
&& tar -xzf ${JOOMLA_FILE} \
&& rm ${JOOMLA_FILE} \
&& chown -R www-data:www-data .