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