This repository has been archived by the owner on Jun 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
71 lines (57 loc) · 1.95 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
ARG REGISTRY_PREFIX=''
FROM ${REGISTRY_PREFIX}alpine:3.10
MAINTAINER David Marteau <[email protected]>
LABEL Description="Lizmap web client" Vendor="3liz.org"
ARG lizmap_version=master
ARG lizmap_git=https://github.com/3liz/lizmap-web-client.git
ARG lizmap_wps_version=master
ARG lizmap_wps_git=https://github.com/3liz/lizmap-wps-web-client-module.git
RUN apk update && apk upgrade
RUN apk --no-cache add git fcgi php7 php7-fpm \
php7-tokenizer \
php7-opcache \
php7-session \
php7-iconv \
php7-intl \
php7-mbstring \
php7-openssl \
php7-fileinfo \
php7-curl \
php7-json \
php7-redis \
php7-pgsql \
php7-sqlite3 \
php7-gd \
php7-dom \
php7-xml \
php7-xmlrpc \
php7-xmlreader \
php7-xmlwriter \
php7-simplexml \
php7-phar \
php7-gettext \
php7-ctype \
php7-zip \
php7-ldap
## Install lizmap web client
RUN echo "cloning $lizmap_version from $lizmap_git" \
&& git clone --branch $lizmap_version --depth=1 $lizmap_git lizmap-web-client \
&& rm -rf lizmap-web-client/vagrant lizmap-web-client/.git \
&& mv lizmap-web-client /www \
&& mv /www/lizmap/var/config /www/lizmap/var/config.dist \
&& mv /www/lizmap/www /www/lizmap/www.dist
# Install lizmap wps
RUN git clone --branch $lizmap_wps_version --depth=1 $lizmap_wps_git lizmap-wps \
&& mv lizmap-wps/wps /www/lizmap/lizmap-modules/wps \
&& rm -rf lizmap-wps
COPY factory.manifest /build.manifest
COPY lizmapConfig.ini.php.dist localconfig.ini.php.dist /www/lizmap/var/config.dist/
COPY lizmap-entrypoint.sh update-config.php /bin/
## Install healtcheck script
COPY php-fpm-healthcheck /usr/local/bin/
RUN chmod 755 /bin/lizmap-entrypoint.sh /bin/update-config.php /usr/local/bin/php-fpm-healthcheck
ENV PHP_INI_DIR /etc/php7
HEALTHCHECK --interval=60s --timeout=30s CMD php-fpm-healthcheck || exit 1
WORKDIR /www
ENTRYPOINT ["/bin/lizmap-entrypoint.sh"]
CMD ["/usr/sbin/php-fpm7", "-F", "-O"]