Compare commits

...

5 commits

Author SHA1 Message Date
b5c4f8fbc0 Merge pull request 'develop' (#2) from develop into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #2
2024-04-28 10:21:18 +00:00
72d5bd938c Update Dockerfile
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
2024-04-27 22:31:26 +00:00
70763feb6d Update Dockerfile
Some checks failed
continuous-integration/drone/push Build is failing
2024-04-27 21:39:28 +00:00
a9d934f08a fix: change curl line
Some checks failed
continuous-integration/drone/push Build is failing
2024-02-05 16:23:49 +01:00
5f1de8cc30 refactor: follow best-practices in Dockerfile
Some checks failed
continuous-integration/drone/push Build is failing
2024-02-05 16:08:29 +01:00

View file

@ -6,7 +6,7 @@ MAINTAINER Glenn ROLLAND <glenux@glenux.net>
RUN apt-get update \
&& apt-cache search lib mysql dev$ \
&& apt-get install -y \
wget unzip curl \
unzip curl \
libfreetype6-dev \
libicu-dev \
libjpeg62-turbo-dev \
@ -28,19 +28,22 @@ RUN apt-get update \
&& docker-php-ext-install imap \
&& docker-php-ext-install zip
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
ADD php-errors.ini /usr/local/etc/php/conf.d/glenux-errors.ini
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
RUN curl -sS https://getcomposer.org/installer \
| php -- --install-dir=/usr/local/bin --filename=composer
ENV DOLIBARR_VERSION=18.0.4
ENV DOLIBARR_VERSION=19.0.1
# ENV DOLIBARR_VERSION=18.0.4
# ENV DOLIBARR_VERSION=17.0.2
# ENV DOLIBARR_VERSION=16.0.4
RUN wget -q \
-O /tmp/dolibarr-${DOLIBARR_VERSION}.zip \
https://github.com/Dolibarr/dolibarr/archive/${DOLIBARR_VERSION}.zip
# 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
RUN curl -sS \
https://freefr.dl.sourceforge.net/project/dolibarr/Dolibarr%20ERP-CRM/${DOLIBARR_VERSION}/dolibarr-${DOLIBARR_VERSION}.zip \
-o /tmp/dolibarr-${DOLIBARR_VERSION}.zip
RUN unzip -q -d /usr/src /tmp/dolibarr-${DOLIBARR_VERSION}.zip \
&& chown -R www-data:www-data /usr/src/dolibarr-${DOLIBARR_VERSION} \
@ -59,5 +62,5 @@ RUN sed \
/etc/apache2/sites-enabled/000-default.conf
CMD apache2-foreground
CMD ["apache2-foreground"]