service-dolibarr/Dockerfile

43 lines
1.3 KiB
Text
Raw Normal View History

2018-03-21 22:55:11 +00:00
FROM php:7.2-apache
MAINTAINER Glenn ROLLAND <glenux@glenux.net>
RUN apt-get update \
&& apt-cache search lib mysql dev$ \
&& apt-get install -y \
wget unzip curl \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
libmysql++-dev \
2018-08-10 08:45:12 +00:00
zlib1g-dev \
2018-03-21 22:55:11 +00:00
&& apt-get autoremove \
&& docker-php-ext-install -j$(nproc) iconv \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd \
2018-08-10 08:45:12 +00:00
&& docker-php-ext-install pdo pdo_mysql mysqli \
&& docker-php-ext-install zip
2018-03-21 22:55:11 +00:00
RUN curl -sS https://getcomposer.org/installer \
| php -- --install-dir=/usr/local/bin --filename=composer
RUN wget \
2018-12-05 21:15:03 +00:00
-O /tmp/dolibarr-8.0.3.zip \
https://github.com/Dolibarr/dolibarr/archive/8.0.3.zip
2018-03-21 22:55:11 +00:00
2018-12-05 21:15:03 +00:00
RUN unzip -d /usr/src /tmp/dolibarr-8.0.3.zip \
&& chown -R www-data:www-data /usr/src/dolibarr-8.0.3 \
2018-03-21 22:55:11 +00:00
&& rm -fr /var/www/html \
2018-12-05 21:15:03 +00:00
&& cp -a /usr/src/dolibarr-8.0.3 /var/www/html
2018-03-21 22:55:11 +00:00
ADD php-uploads.ini /usr/local/etc/php/conf.d/glenux-uploads.ini
ADD php-performance.ini /usr/local/etc/php/conf.d/glenux-performance.ini
2018-03-26 08:57:39 +00:00
ADD php-errors.ini /usr/local/etc/php/conf.d/glenux-errors.ini
2018-03-21 22:55:11 +00:00
RUN sed \
-i 's|/var/www/html|/var/www/html/htdocs|' \
/etc/apache2/sites-enabled/000-default.conf
2018-03-22 19:01:09 +00:00
WORKDIR /var/www/html
2018-03-21 22:55:11 +00:00
2018-03-22 19:01:09 +00:00
CMD composer install && apache2-foreground