-
Notifications
You must be signed in to change notification settings - Fork 88
/
Dockerfile
41 lines (33 loc) · 1.16 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
30
31
32
33
34
35
36
37
38
39
40
41
FROM php:7.3.4-apache
RUN apt-get update && apt-get install -y --no-install-recommends \
locales \
zlib1g-dev \
libpng-dev \
libzip-dev \
wget \
unzip \
&& rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-install mysqli \
&& docker-php-ext-install mbstring \
&& docker-php-ext-install zip \
&& docker-php-ext-install json \
&& docker-php-ext-install gd \
&& docker-php-ext-install gettext
RUN a2enmod rewrite
RUN echo $'en_US.UTF-8 UTF-8\n\
fr_FR.UTF-8 UTF-8\n\
en_GB.UTF-8 UTF-8\n\
fi_FI.UTF-8 UTF-8\n\
sv_SE.UTF-8 UTF-8\n'\
>> /etc/locale.gen
RUN locale-gen
RUN echo "session.gc_maxlifetime=60000" >> /usr/local/etc/php/php.ini \
&& echo "max_execution_time=3000" >> /usr/local/etc/php/php.ini
RUN wget https://github.com/TestLinkOpenSourceTRMS/testlink-code/archive/1.9.19.zip -O /var/www/html/source.zip \
&& unzip /var/www/html/source.zip -d /tmp/ \
&& mv /tmp/testlink*/* /var/www/html/
RUN mkdir -p /var/www/html/gui/templates_c \
&& mkdir -p /var/testlink/logs/ \
&& mkdir -p /var/testlink/upload_area/ \
&& chown -R www-data: /var/www/html/gui/templates_c \
&& chown -R www-data: /var/testlink/