forked from danielkr123/webtrees-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (28 loc) · 1.06 KB
/
Dockerfile
File metadata and controls
36 lines (28 loc) · 1.06 KB
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
FROM simonszu/apache-php-ssl
ENV WEBTREES_VERSION 1.7.11
WORKDIR /var/www/html
RUN apt-get update \
&& apt-get install -y wget \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng-dev \
&& rm -rf /var/lib/apt/lists/* \
&& wget https://github.com/fisharebest/webtrees/archive/$WEBTREES_VERSION.tar.gz \
&& tar -xzf $WEBTREES_VERSION.tar.gz --strip-components=1 \
&& rm $WEBTREES_VERSION.tar.gz \
&& cp -r /var/www/html/data /var/www/html/data.bak \
&& chown -R www-data /var/www/html \
&& chmod -R g-w /var/www/html* \
&& cp /var/www/html/data/index.php /tmp/ \
&& cp /var/www/html/data/.htaccess /tmp/
RUN docker-php-ext-install -j$(nproc) pdo_mysql \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd
VOLUME /var/www/html/data
ADD run.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/run.sh
ADD de.mo /var/www/html/language/
RUN chown -R www-data:root /var/www/html/data
EXPOSE 443
ENTRYPOINT ["/usr/local/bin/run.sh"]