2024-08-06 13:49:54 +00:00
|
|
|
FROM php:8.1-apache-bookworm
|
2023-03-15 10:06:54 +00:00
|
|
|
# FROM php:7.4-apache-buster
|
2018-03-21 22:55:11 +00:00
|
|
|
MAINTAINER Glenn ROLLAND <glenux@glenux.net>
|
|
|
|
|
2019-10-12 16:02:05 +00:00
|
|
|
|
2018-03-21 22:55:11 +00:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-cache search lib mysql dev$ \
|
|
|
|
&& apt-get install -y \
|
2024-02-05 15:08:29 +00:00
|
|
|
unzip curl \
|
2018-03-21 22:55:11 +00:00
|
|
|
libfreetype6-dev \
|
2021-04-19 17:42:28 +00:00
|
|
|
libicu-dev \
|
2018-03-21 22:55:11 +00:00
|
|
|
libjpeg62-turbo-dev \
|
2019-10-12 16:02:05 +00:00
|
|
|
libmariadb-dev \
|
2021-04-19 17:42:28 +00:00
|
|
|
libpng-dev \
|
|
|
|
libzip-dev \
|
2022-12-09 14:19:22 +00:00
|
|
|
libc-client-dev \
|
|
|
|
libkrb5-dev \
|
2018-08-10 08:45:12 +00:00
|
|
|
zlib1g-dev \
|
2019-10-12 16:02:05 +00:00
|
|
|
&& apt-get autoremove -y \
|
2018-03-21 22:55:11 +00:00
|
|
|
&& docker-php-ext-install -j$(nproc) iconv \
|
2019-10-12 16:02:05 +00:00
|
|
|
&& docker-php-ext-configure intl \
|
|
|
|
&& docker-php-ext-install -j$(nproc) intl \
|
2021-04-19 17:31:41 +00:00
|
|
|
&& docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ \
|
2018-03-21 22:55:11 +00:00
|
|
|
&& docker-php-ext-install -j$(nproc) gd \
|
2018-08-10 08:45:12 +00:00
|
|
|
&& docker-php-ext-install pdo pdo_mysql mysqli \
|
2020-07-14 17:01:59 +00:00
|
|
|
&& docker-php-ext-install calendar \
|
2022-12-09 14:19:22 +00:00
|
|
|
&& docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
|
|
|
|
&& docker-php-ext-install imap \
|
2018-08-10 08:45:12 +00:00
|
|
|
&& docker-php-ext-install zip
|
2018-03-21 22:55:11 +00:00
|
|
|
|
2024-02-05 15:08:29 +00:00
|
|
|
COPY php-uploads.ini /usr/local/etc/php/conf.d/glenux-uploads.ini
|
|
|
|
COPY php-performance.ini /usr/local/etc/php/conf.d/glenux-performance.ini
|
|
|
|
COPY php-errors.ini /usr/local/etc/php/conf.d/glenux-errors.ini
|
2021-09-09 19:16:27 +00:00
|
|
|
|
2018-03-21 22:55:11 +00:00
|
|
|
RUN curl -sS https://getcomposer.org/installer \
|
|
|
|
| php -- --install-dir=/usr/local/bin --filename=composer
|
|
|
|
|
2024-08-06 13:49:54 +00:00
|
|
|
ENV DOLIBARR_VERSION=19.0.2
|
2024-04-27 21:39:28 +00:00
|
|
|
# ENV DOLIBARR_VERSION=18.0.4
|
2024-02-05 14:32:03 +00:00
|
|
|
# ENV DOLIBARR_VERSION=17.0.2
|
2023-03-15 10:06:54 +00:00
|
|
|
# ENV DOLIBARR_VERSION=16.0.4
|
2024-04-27 22:31:26 +00:00
|
|
|
# https://github.com/Dolibarr/dolibarr/archive/${DOLIBARR_VERSION}.zip
|
|
|
|
# https://freefr.dl.sourceforge.net/project/dolibarr/Dolibarr%20ERP-CRM/${DOLIBARR_VERSION}/dolibarr-${DOLIBARR_VERSION}.zip
|
2024-02-05 15:08:29 +00:00
|
|
|
RUN curl -sS \
|
2024-04-27 22:31:26 +00:00
|
|
|
https://freefr.dl.sourceforge.net/project/dolibarr/Dolibarr%20ERP-CRM/${DOLIBARR_VERSION}/dolibarr-${DOLIBARR_VERSION}.zip \
|
2024-02-05 15:23:49 +00:00
|
|
|
-o /tmp/dolibarr-${DOLIBARR_VERSION}.zip
|
2018-03-21 22:55:11 +00:00
|
|
|
|
2023-01-16 00:15:08 +00:00
|
|
|
RUN unzip -q -d /usr/src /tmp/dolibarr-${DOLIBARR_VERSION}.zip \
|
2019-10-12 16:02:05 +00:00
|
|
|
&& chown -R www-data:www-data /usr/src/dolibarr-${DOLIBARR_VERSION} \
|
2018-03-21 22:55:11 +00:00
|
|
|
&& rm -fr /var/www/html \
|
2019-10-12 16:02:05 +00:00
|
|
|
&& cp -a /usr/src/dolibarr-${DOLIBARR_VERSION} /var/www/html
|
2018-03-21 22:55:11 +00:00
|
|
|
|
2022-12-09 14:19:22 +00:00
|
|
|
WORKDIR /var/www/html
|
|
|
|
|
2023-03-05 13:55:39 +00:00
|
|
|
# RUN pwd \
|
|
|
|
# && ls -lh \
|
|
|
|
# && mv composer.json.disabled composer.json \
|
|
|
|
# && composer install
|
2022-12-09 14:19:22 +00:00
|
|
|
|
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
|
|
|
|
|
|
|
|
|
2024-02-05 15:08:29 +00:00
|
|
|
CMD ["apache2-foreground"]
|
2019-10-12 16:02:05 +00:00
|
|
|
|