Fix #1 Build failing: Errors were encountered while processing: postgresql-client-9.6

This commit is contained in:
François Jacquet 2019-05-19 19:03:57 +02:00
parent 37d919bef8
commit 21be77b8fb
1 changed files with 5 additions and 4 deletions

View File

@ -14,10 +14,12 @@ ENV PGHOST=rosariosisdb \
ROSARIOSIS_YEAR=2018 \
ROSARIOSIS_LANG='en_US'
# Fix #1 Build failing: Errors were encountered while processing: postgresql-client-9.6.
RUN mkdir -p /usr/share/man/man1 && \
mkdir -p /usr/share/man/man7;
# Upgrade packages.
# Install git, Apache2 + PHP + PostgreSQL webserver, sendmail, wkhtmltopdf & others utilities.
# Change date to force an upgrade:
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install postgresql-client wkhtmltopdf libpq-dev libpng-dev libxml2-dev sendmail -y;
@ -26,7 +28,7 @@ RUN docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr; \
docker-php-ext-install -j$(nproc) gd mbstring xml pgsql gettext xmlrpc
# Download and extract rosariosis
ENV ROSARIOSIS_VERSION 'v4.3.2'
ENV ROSARIOSIS_VERSION 'v4.7.1'
RUN mkdir /usr/src/rosariosis && \
curl -L https://gitlab.com/francoisjacquet/rosariosis/-/archive/${ROSARIOSIS_VERSION}/rosariosis-${ROSARIOSIS_VERSION}.tar.gz \
| tar xz --strip-components=1 -C /usr/src/rosariosis && \
@ -39,7 +41,6 @@ COPY conf/config.inc.php /usr/src/rosariosis/config.inc.php
COPY conf/.htaccess /usr/src/rosariosis/.htaccess
COPY bin/init /init
EXPOSE 80
ENTRYPOINT ["/init"]