1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-30 09:16:41 +02:00
dockerfiles/mantisbt/Dockerfile

32 lines
1.0 KiB
Docker
Raw Normal View History

2016-07-26 12:33:37 +02:00
#
# Dockerfile for mantisbt
#
FROM php:5.6-apache
2017-05-08 01:05:07 +02:00
MAINTAINER kev <noreply@easypi.pro>
2016-07-26 12:33:37 +02:00
RUN a2enmod rewrite
RUN set -xe \
&& apt-get update \
&& apt-get install -y libfreetype6-dev libpng-dev libjpeg-dev libpq-dev libxml2-dev \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr --with-freetype-dir=/usr \
2016-08-15 05:39:41 +02:00
&& docker-php-ext-install gd mbstring mysql mysqli pgsql soap \
&& rm -rf /var/lib/apt/lists/*
2016-07-26 12:33:37 +02:00
ENV MANTIS_VER 2.22.1
ENV MANTIS_MD5 ced6493cb2c1ea6bbf8b95b5082e7d98
2018-10-25 16:41:04 +02:00
ENV MANTIS_URL https://sourceforge.net/projects/mantisbt/files/mantis-stable/${MANTIS_VER}/mantisbt-${MANTIS_VER}.tar.gz
2016-07-26 12:33:37 +02:00
ENV MANTIS_FILE mantisbt.tar.gz
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 .
RUN set -xe \
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo 'date.timezone = "Asia/Shanghai"' > /usr/local/etc/php/php.ini