1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-14 11:23:34 +02:00
dockerfiles/discuz/Dockerfile

30 lines
824 B
Docker
Raw Normal View History

2016-01-16 15:57:09 +02:00
#
# Dockerfile for discuz
#
FROM php:5.6-apache
MAINTAINER kev<noreply@datageek.info>
RUN set -xe \
&& apt-get update \
&& apt-get install -y curl libjpeg-dev libpng12-dev unzip \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install gd mysql
WORKDIR /var/www/html
ENV DISCUZ_VER 3.2
ENV DISCUZ_URL http://download.comsenz.com/DiscuzX/${DISCUZ_VER}/Discuz_X${DISCUZ_VER}_SC_UTF8.zip
ENV DISCUZ_MD5 ee804eac357d717ec0e75ad025d541b9
ENV DISCUZ_FILE discuz.zip
RUN set -xe \
&& curl -fSL ${DISCUZ_URL} -o ${DISCUZ_FILE} \
&& echo "${DISCUZ_MD5} ${DISCUZ_FILE}" | md5sum -c \
&& unzip ${DISCUZ_FILE} 'upload/*' \
&& mv upload/* . \
&& rm -rf ${DISCUZ_FILE} upload \
&& chown -R www-data:www-data .