Block a user
legalcrm-espocrm (9.3.3)
Published 2026-03-24 10:32:29 +00:00 by Chaim
Installation
docker pull gitea.prod.marcus-law.co.il/chaim/legalcrm-espocrm:9.3.3sha256:b00042841afe381f9f5828ff701840ca97f8cabe89fc63ea461020e44ebf4c62
About this package
Official Docker Image for EspoCRM
Image Layers
| # debian.sh --arch 'amd64' out/ 'trixie' '@1771804800' |
| RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit |
| ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c |
| RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; apt-get dist-clean # buildkit |
| ENV PHP_INI_DIR=/usr/local/etc/php |
| RUN /bin/sh -c set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 1777 /var/www/html # buildkit |
| ENV APACHE_CONFDIR=/etc/apache2 |
| ENV APACHE_ENVVARS=/etc/apache2/envvars |
| RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends apache2; apt-get dist-clean; sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; . "$APACHE_ENVVARS"; for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" "$APACHE_RUN_DIR/socks" ; do rm -rvf "$dir"; mkdir -p "$dir"; chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; chmod 1777 "$dir"; done; rm -rvf /var/www/html/*; ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"; chown -R --no-dereference "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$APACHE_LOG_DIR" # buildkit |
| RUN /bin/sh -c a2dismod mpm_event && a2enmod mpm_prefork # buildkit |
| RUN /bin/sh -c { echo '<FilesMatch \.php$>'; echo '\tSetHandler application/x-httpd-php'; echo '</FilesMatch>'; echo; echo 'DirectoryIndex disabled'; echo 'DirectoryIndex index.php index.html'; echo; echo '<Directory /var/www/>'; echo '\tOptions -Indexes'; echo '\tAllowOverride All'; echo '</Directory>'; } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" && a2enconf docker-php # buildkit |
| ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 |
| ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 |
| ENV PHP_LDFLAGS=-Wl,-O1 -pie |
| ENV GPG_KEYS=AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD |
| ENV PHP_VERSION=8.4.18 |
| ENV PHP_URL=https://www.php.net/distributions/php-8.4.18.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.4.18.tar.xz.asc |
| ENV PHP_SHA256=957a9b19b4a8e965ee0cc788ca74333bfffaadc206b58611b6cd3cc8b2f40110 |
| RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; apt-get dist-clean; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit |
| COPY docker-php-source /usr/local/bin/ # buildkit |
| RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends apache2-dev libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; ./configure --build="$gnuArch" --sysconfdir="${PHP_INI_DIR%/php}" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --with-apxs2 ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit |
| COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit |
| RUN /bin/sh -c docker-php-ext-enable opcache # buildkit |
| RUN /bin/sh -c docker-php-ext-enable sodium # buildkit |
| ENTRYPOINT ["docker-php-entrypoint"] |
| STOPSIGNAL SIGWINCH |
| COPY apache2-foreground /usr/local/bin/ # buildkit |
| WORKDIR /var/www/html |
| EXPOSE map[80/tcp:{}] |
| CMD ["apache2-foreground"] |
| LABEL org.opencontainers.image.source=https://github.com/espocrm/espocrm |
| LABEL org.opencontainers.image.description=EspoCRM is an Open Source CRM. Try for Free. |
| RUN /bin/sh -c set -ex; aptMarkList="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libpq-dev libpng-dev libjpeg-dev libwebp-dev libfreetype6-dev libzip-dev libxml2-dev libldap2-dev libzmq5-dev zlib1g-dev ; cd /usr; curl -fSL https://github.com/zeromq/php-zmq/archive/616b6c64ffd3866ed038615494306dd464ab53fc.tar.gz -o php-zmq.tar.gz; tar -zxf php-zmq.tar.gz; cd php-zmq*; phpize && ./configure; make; make install; cd .. && rm -rf php-zmq*; pecl install ev; docker-php-ext-configure ldap --with-libdir="lib/$(dpkg-architecture --query DEB_BUILD_MULTIARCH)" ; docker-php-ext-configure gd --with-freetype --with-jpeg=/usr --with-webp ; docker-php-ext-install -j$(nproc) gd pdo_pgsql pdo_mysql zip ldap exif pcntl posix bcmath ; docker-php-ext-enable zmq ev ; apt-mark auto '.*' > /dev/null; apt-mark manual $aptMarkList; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { print $3 }' | sort -u | xargs -r realpath | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get install -y --no-install-recommends unzip libldap-common ; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # buildkit |
| RUN /bin/sh -c { echo 'expose_php = Off'; echo 'error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED'; echo 'display_errors = Off'; echo 'display_startup_errors = Off'; echo 'log_errors = On'; echo 'memory_limit=256M'; echo 'max_execution_time=180'; echo 'max_input_time=180'; echo 'post_max_size=30M'; echo 'upload_max_filesize=30M'; echo 'date.timezone=UTC'; } > ${PHP_INI_DIR}/conf.d/espocrm.ini # buildkit |
| RUN /bin/sh -c a2enmod rewrite; # buildkit |
| ENV ESPOCRM_VERSION=9.3.3 |
| ENV ESPOCRM_SHA256=bfaa932b6cf30676626138a0863d5b954df78cadd6ba2c56410a5b97e6bb3d5a |
| WORKDIR /var/www/html |
| RUN /bin/sh -c set -ex; curl -fSL "https://www.espocrm.com/downloads/EspoCRM-9.3.3.zip" -o EspoCRM.zip; echo "${ESPOCRM_SHA256} *EspoCRM.zip" | sha256sum -c -; unzip -q EspoCRM.zip -d /usr/src; mv "/usr/src/EspoCRM-9.3.3" /usr/src/espocrm; rm EspoCRM.zip # buildkit |
| COPY ./docker-*.sh /usr/local/bin/ # buildkit |
| ENTRYPOINT ["docker-entrypoint.sh"] |
| CMD ["apache2-foreground"] |
| USER root |
| RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends libreoffice-writer libreoffice-common ghostscript culmus poppler-utils unzip fontconfig && apt-get clean && rm -rf /var/lib/apt/lists/* # buildkit |
| COPY fonts-local.conf /etc/fonts/local.conf # buildkit |
| RUN /bin/sh -c fc-cache -f # buildkit |
| COPY /usr/bin/composer /usr/bin/composer # buildkit |
| RUN /bin/sh -c mkdir /tmp/composer-install && cd /tmp/composer-install && composer require phpoffice/phpword mpdf/mpdf --no-interaction --optimize-autoloader && cp -r vendor/phpoffice /usr/src/espocrm/vendor/ && cp -r vendor/mpdf /usr/src/espocrm/vendor/ && cp -r vendor/setasign /usr/src/espocrm/vendor/ && cp -r vendor/myclabs /usr/src/espocrm/vendor/ && cp -r vendor/paragonie /usr/src/espocrm/vendor/ 2>/dev/null; cp -r vendor/psr/http-message /usr/src/espocrm/vendor/psr/ 2>/dev/null; cp -r vendor/psr/log /usr/src/espocrm/vendor/psr/ 2>/dev/null; cd /usr/src/espocrm && composer dump-autoload --no-interaction --optimize 2>/dev/null || true && rm -rf /tmp/composer-install # buildkit |
| RUN /bin/sh -c mkdir -p /var/www/.cache/dconf /var/www/.config/libreoffice && chown -R www-data:www-data /var/www/.cache /var/www/.config # buildkit |
| ENV HOME=/var/www |
| RUN /bin/sh -c soffice --version && gs --version # buildkit |
Labels
| Key | Value |
|---|---|
| org.opencontainers.image.created | 2026-03-10T13:38:44.820Z |
| org.opencontainers.image.description | Official Docker Image for EspoCRM |
| org.opencontainers.image.licenses | AGPL-3.0 |
| org.opencontainers.image.revision | b7089c6d4272bd22623c9a62a338791f72391f1c |
| org.opencontainers.image.source | https://github.com/espocrm/espocrm-docker |
| org.opencontainers.image.title | espocrm-docker |
| org.opencontainers.image.url | https://github.com/espocrm/espocrm-docker |
| org.opencontainers.image.version | 9.3.3 |