|
1 | | -# Copyright (C) 2023-2024 Solution Libre <[email protected]> |
2 | | -# |
3 | | -# This file is part of Dolibarr with Docker Compose. |
4 | | -# |
5 | | -# Dolibarr with Docker Compose is free software: you can redistribute it and/or modify |
6 | | -# it under the terms of the GNU General Public License as published by |
7 | | -# the Free Software Foundation, either version 3 of the License, or |
8 | | -# (at your option) any later version. |
9 | | -# |
10 | | -# Dolibarr with Docker Compose is distributed in the hope that it will be useful, |
11 | | -# but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | | -# GNU General Public License for more details. |
14 | | -# |
15 | | -# You should have received a copy of the GNU General Public License |
16 | | -# along with Dolibarr with Docker Compose. If not, see <https://www.gnu.org/licenses/>. |
17 | | - |
18 | | -ARG DOLIBARR_VERSION=latest |
19 | | - |
20 | | -FROM dolibarr/dolibarr:${DOLIBARR_VERSION} |
21 | | - |
22 | | -LABEL org.opencontainers.image.authors= 'Solution Libre <[email protected]>'\ |
23 | | - org.opencontainers.image.base.name="dolibarr/dolibarr:${DOLIBARR_VERSION}"\ |
24 | | - org.opencontainers.image.description='Open Source ERP & CRM for business'\ |
25 | | - org.opencontainers.image.licenses='GPL-3.0-or-later'\ |
26 | | - org.opencontainers.image.ref.name='soli/dolibarr'\ |
27 | | - org.opencontainers.image.source='https://usine.solution-libre.fr/docker/dolibarr/-/tree/main/' \ |
28 | | - org.opencontainers.image.title='Dolibarr'\ |
29 | | - org.opencontainers.image.url='https://usine.solution-libre.fr/docker/dolibarr'\ |
30 | | - org.opencontainers.image.vendor='Solution Libre'\ |
31 | | - org.opencontainers.image.version="${DOLIBARR_VERSION}" |
32 | | - |
33 | | -ARG MEMCACHED_ENABLED=false\ |
34 | | - XDEBUG_ENABLED=false |
35 | | - |
36 | | -# hadolint ignore=DL3008,DL3015,DL4006 |
37 | | -RUN if [ "${MEMCACHED_ENABLED}" = 'true' ] || [ "${MEMCACHED_ENABLED}" = 'yes' ]; then\ |
38 | | - apt-get update\ |
39 | | - && apt-get install -y libz-dev libmemcached-dev libmemcachedutil2\ |
40 | | - && yes '' | pecl install -f --configureoptions 'enable-memcached-sasl="no"' memcached\ |
41 | | - && docker-php-ext-enable memcached\ |
42 | | - && apt-get autoremove --purge -y libz-dev libmemcached-dev\ |
43 | | - && rm -rf /var/lib/apt/lists/*\ |
44 | | - ;fi |
45 | | - |
46 | | -RUN if [ "${XDEBUG_ENABLED}" = 'true' ] || [ "${XDEBUG_ENABLED}" = 'yes' ]; then\ |
47 | | - pecl install xdebug\ |
48 | | - && docker-php-ext-enable xdebug\ |
49 | | - ;fi |
| 1 | +# Copyright (C) 2023-2024 Solution Libre <[email protected]> |
| 2 | +# |
| 3 | +# This file is part of Dolibarr with Docker Compose. |
| 4 | +# |
| 5 | +# Dolibarr with Docker Compose is free software: you can redistribute it and/or modify |
| 6 | +# it under the terms of the GNU General Public License as published by |
| 7 | +# the Free Software Foundation, either version 3 of the License, or |
| 8 | +# (at your option) any later version. |
| 9 | +# |
| 10 | +# Dolibarr with Docker Compose is distributed in the hope that it will be useful, |
| 11 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | +# GNU General Public License for more details. |
| 14 | +# |
| 15 | +# You should have received a copy of the GNU General Public License |
| 16 | +# along with Dolibarr with Docker Compose. If not, see <https://www.gnu.org/licenses/>. |
| 17 | + |
| 18 | +ARG DOLIBARR_VERSION=latest |
| 19 | + |
| 20 | +FROM dolibarr/dolibarr:${DOLIBARR_VERSION} |
| 21 | + |
| 22 | +LABEL org.opencontainers.image.authors= 'Solution Libre <[email protected]>'\ |
| 23 | + org.opencontainers.image.base.name="dolibarr/dolibarr:${DOLIBARR_VERSION}"\ |
| 24 | + org.opencontainers.image.description='Open Source ERP & CRM for business'\ |
| 25 | + org.opencontainers.image.licenses='GPL-3.0-or-later'\ |
| 26 | + org.opencontainers.image.ref.name='soli/dolibarr'\ |
| 27 | + org.opencontainers.image.source='https://usine.solution-libre.fr/docker/dolibarr/-/tree/main/' \ |
| 28 | + org.opencontainers.image.title='Dolibarr'\ |
| 29 | + org.opencontainers.image.url='https://usine.solution-libre.fr/docker/dolibarr'\ |
| 30 | + org.opencontainers.image.vendor='Solution Libre'\ |
| 31 | + org.opencontainers.image.version="${DOLIBARR_VERSION}" |
| 32 | + |
| 33 | +ARG MEMCACHED_ENABLED=false\ |
| 34 | + XDEBUG_ENABLED=false |
| 35 | + |
| 36 | +# hadolint ignore=DL3008,DL3015,DL4006 |
| 37 | +RUN if [ "${MEMCACHED_ENABLED}" = 'true' ] || [ "${MEMCACHED_ENABLED}" = 'yes' ]; then\ |
| 38 | + apt-get update\ |
| 39 | + && apt-get install -y libz-dev libmemcached-dev libmemcachedutil2\ |
| 40 | + && yes '' | pecl install -f --configureoptions 'enable-memcached-sasl="no"' memcached\ |
| 41 | + && docker-php-ext-enable memcached\ |
| 42 | + && apt-get autoremove --purge -y libz-dev libmemcached-dev\ |
| 43 | + && rm -rf /var/lib/apt/lists/*\ |
| 44 | + ;fi |
| 45 | + |
| 46 | +RUN if [ "${XDEBUG_ENABLED}" = 'true' ] || [ "${XDEBUG_ENABLED}" = 'yes' ]; then\ |
| 47 | + pecl install xdebug\ |
| 48 | + && docker-php-ext-enable xdebug\ |
| 49 | + ;fi |
0 commit comments