forked from Kitware/CDash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
61 lines (53 loc) · 2.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
FROM php:7.0-apache
LABEL maintainer="Kitware, Inc. <[email protected]>"
RUN apt-get update \
&& apt-get install -y gnupg \
&& curl -sL https://deb.nodesource.com/setup_6.x | bash \
&& apt-get install -y git libbz2-dev libfreetype6-dev libjpeg62-turbo-dev \
libmcrypt-dev libpng-dev libpq-dev libxslt-dev libxss1 nodejs unzip wget \
zip libldap2-dev \
&& docker-php-ext-configure pgsql --with-pgsql=/usr/local/pgsql \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ \
--with-jpeg-dir=/usr/include/ \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
&& docker-php-ext-install -j$(nproc) bcmath bz2 gd pdo_mysql pdo_pgsql xsl ldap \
&& wget -q -O checksum https://composer.github.io/installer.sha384sum \
&& wget -q -O composer-setup.php https://getcomposer.org/installer \
&& sha384sum -c checksum \
&& php composer-setup.php --install-dir=/usr/local/bin --filename=composer \
&& php -r "unlink('composer-setup.php');" \
&& composer self-update --no-interaction
RUN mkdir -p /var/www/cdash
COPY php.ini /var/www/cdash/php.ini
COPY xml_handlers /var/www/cdash/xml_handlers
COPY app /var/www/cdash/app
COPY composer.lock /var/www/cdash/composer.lock
COPY public /var/www/cdash/public
COPY scripts /var/www/cdash/scripts
COPY sql /var/www/cdash/sql
COPY package.json /var/www/cdash/package.json
COPY .php_cs /var/www/cdash/.php_cs
COPY config /var/www/cdash/config
COPY log /var/www/cdash/log
COPY gulpfile.js /var/www/cdash/gulpfile.js
COPY backup /var/www/cdash/backup
COPY include /var/www/cdash/include
COPY bootstrap /var/www/cdash/bootstrap
COPY composer.json /var/www/cdash/composer.json
COPY scripts/bash /bash-lib
RUN cd /var/www/cdash \
&& composer install --no-interaction --no-progress --prefer-dist --no-dev \
&& npm install \
&& node_modules/.bin/gulp \
&& chmod 777 backup log public/rss public/upload \
&& rm -rf /var/www/html \
&& ln -s /var/www/cdash/public /var/www/html \
&& rm -rf composer.lock package.json gulpfile.js composer.json
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
WORKDIR /var/www/cdash
EXPOSE 80
HEALTHCHECK --interval=30s --timeout=5s --start-period=5m \
CMD ["curl", "-f", "http://localhost/viewProjects.php"]
ENTRYPOINT ["/bin/bash", "/docker-entrypoint.sh"]
CMD ["serve"]