-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathDockerfile
29 lines (24 loc) · 1.18 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM php:8.1-apache
RUN a2enmod rewrite
RUN set -xe \
&& apt-get update \
&& apt-get install -y libfreetype6-dev libpng-dev libjpeg-dev libpq-dev libxml2-dev libonig-dev \
&& docker-php-ext-install gd mbstring mysqli pgsql soap \
&& rm -rf /var/lib/apt/lists/*
ENV MANTIS_VERSION=2.25.5
ENV MANTIS_MD5=6e0582e0681b9b11be41f6f9f4171038
ENV MANTIS_URL=https://sourceforge.net/projects/mantisbt/files/mantis-stable/${MANTIS_VERSION}/mantisbt-${MANTIS_VERSION}.tar.gz
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/America/Vancouver /etc/localtime \
&& touch /usr/local/etc/php/conf.d/mantis.ini \
&& echo 'date.timezone = "America/Vancouver"' >> /usr/local/etc/php/conf.d/mantis.ini \
&& echo 'log_errors = 1' >> /usr/local/etc/php/conf.d/mantis.ini \
&& echo 'upload_max_filesize = 20M' >> /usr/local/etc/php/conf.d/mantis.ini \
&& echo 'post_max_size = 21M' >> /usr/local/etc/php/conf.d/mantis.ini