-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
29 lines (23 loc) · 1.48 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:5.6-apache
MAINTAINER Christian Simon <[email protected]>
ENV SQUIRRELMAIL_VERSION 1.4.22
# install the PHP extensions we need
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y libcurl4-gnutls-dev libpng-dev libssl-dev libc-client2007e-dev libkrb5-dev unzip cron re2c python tree libjpeg-dev libpng-dev wget \
&& docker-php-ext-configure imap --with-imap-ssl --with-kerberos \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install mysqli curl gd zip mbstring imap iconv \
&& rm -rf /var/lib/apt/lists/* \
&& echo 'register_globals = Off' > /usr/local/etc/php/conf.d/squirrelmail.ini \
&& echo 'magic_quotes_runtime = Off' >> /usr/local/etc/php/conf.d/squirrelmail.ini \
&& echo 'magic_quotes_gpc = Off' >> /usr/local/etc/php/conf.d/squirrelmail.ini \
&& echo 'file_upload = On' >> /usr/local/etc/php/conf.d/squirrelmail.ini \
&& echo 'error_reporting = E_ERROR' >> /usr/local/etc/php/conf.d/squirrelmail.ini
ENV SUIRRELMAIL_URL "https://sourceforge.net/projects/squirrelmail/files/stable/${SQUIRRELMAIL_VERSION}/squirrelmail-webmail-${SQUIRRELMAIL_VERSION}.tar.gz/download?use_mirror=heanet"
RUN cd /var/www/html \
&& wget "${SUIRRELMAIL_URL}" -O squirrelmail-webmail-${SQUIRRELMAIL_VERSION}.tar.gz \
&& tar -xvzf squirrelmail-webmail-${SQUIRRELMAIL_VERSION}.tar.gz --strip-components=1 \
&& rm squirrelmail-webmail-${SQUIRRELMAIL_VERSION}.tar.gz \
&& chown -R www-data:www-data .
VOLUME /var/squirrelmail