1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-24 05:16:44 +02:00
dockerfiles/mantisbt/Dockerfile

34 lines
1.0 KiB
Docker
Raw Normal View History

2015-05-06 15:11:09 +08:00
#
# Dockerfile for mantisbt
#
2015-05-18 15:49:54 +08:00
FROM php:5.6-apache
2015-05-06 14:59:32 +08:00
MAINTAINER kev<noreply@datageek.info>
RUN a2enmod rewrite
2016-02-11 22:52:43 +08:00
RUN set -xe \
&& apt-get update \
&& apt-get install -y libpng12-dev libjpeg-dev libpq-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 mbstring mysql mysqli pgsql
2015-05-06 14:59:32 +08:00
WORKDIR /var/www/html
2016-02-11 22:52:43 +08:00
ENV MANTIS_VER 1.2.19
2015-05-06 15:11:09 +08:00
ENV MANTIS_MD5 8377a0219ec344b9ab9c186012b5114f
2016-02-11 22:52:43 +08:00
ENV MANTIS_URL http://jaist.dl.sourceforge.net/project/mantisbt/mantis-stable/${MANTIS_VER}/mantisbt-${MANTIS_VER}.tar.gz
2015-05-06 15:11:09 +08:00
ENV MANTIS_FILE mantisbt.tar.gz
2015-05-06 14:59:32 +08:00
2016-02-11 22:52:43 +08:00
RUN set -xe \
&& curl -fSL ${MANTIS_URL} -o ${MANTIS_FILE} \
&& echo "${MANTIS_MD5} ${MANTIS_FILE}" | md5sum -c \
&& tar -xz --strip-components=1 -f ${MANTIS_FILE} \
&& rm ${MANTIS_FILE} \
&& chown -R www-data:www-data .
2015-05-06 15:11:09 +08:00
2016-02-11 22:52:43 +08:00
RUN set -xe \
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo 'date.timezone = "Asia/Shanghai"' > /usr/local/etc/php/php.ini