5
5
ARG cachet_ver
6
6
ENV cachet_ver master
7
7
8
+ ENV PG_MAJOR 9.5
9
+
10
+ RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8
11
+
12
+ RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ jessie-pgdg main' $PG_MAJOR > /etc/apt/sources.list.d/pgdg.list
13
+
8
14
# Using debian packages instead of compiling from scratch
9
15
RUN DEBIAN_FRONTEND=noninteractive \
10
16
echo "APT::Install-Recommends \" 0\" ;" >> /etc/apt/apt.conf.d/02recommends && \
11
17
echo "APT::Install-Suggests \" 0\" ;" >> /etc/apt/apt.conf.d/02recommends && \
12
18
apt-get clean && \
13
19
apt-get -q -y update && \
14
20
apt-get -q -y install \
15
- ca-certificates php5-fpm php5-curl \
21
+ ca-certificates \
22
+ postgresql-client-$PG_MAJOR \
23
+ mysql-client \
24
+ php5-fpm php5-curl \
16
25
php5-readline php5-mcrypt sudo \
17
26
php5-mysql php5-apcu php5-cli \
18
27
php5-gd php5-mysql php5-pgsql \
19
28
php5-sqlite wget sqlite git \
20
- libsqlite3-dev postgresql-client mysql-client \
29
+ libsqlite3-dev \
21
30
supervisor cron && \
22
31
apt-get clean && apt-get autoremove -q && \
23
32
rm -rf /var/lib/apt/lists/* /usr/share/doc /usr/share/man /tmp/*
@@ -43,7 +52,7 @@ USER www-data
43
52
44
53
# Install composer
45
54
RUN php -r "copy('https://getcomposer.org/installer', '/tmp/composer-setup.php');" && \
46
- php -r "copy('https://composer.github.io/installer.sig', '/tmp/composer-setup.sig');" && \
55
+ php -r "copy('https://composer.github.io/installer.sig', '/tmp/composer-setup.sig');" && \
47
56
php -r "if (hash('SHA384', file_get_contents('/tmp/composer-setup.php')) !== trim(file_get_contents('/tmp/composer-setup.sig'))) { unlink('/tmp/composer-setup.php'); echo 'Invalid installer' . PHP_EOL; exit(1); }" && \
48
57
php /tmp/composer-setup.php --version=1.1.2 && \
49
58
php -r "unlink('composer-setup.php');"
0 commit comments