代码拉取完成,页面将自动刷新
FROM php:8.2-%%VARIANT%%
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 set -ex; \
\
aptMarkList="$(apt-mark showmanual)"; \
\
apt-get update; \
# Install php libs
apt-get install -y --no-install-recommends \
libpq-dev \
libjpeg-dev \
libpng-dev \
libmagickwand-dev \
libwebp-dev \
libfreetype6-dev \
libzip-dev \
libxml2-dev \
libc-client-dev \
libkrb5-dev \
libldap2-dev \
libzmq5-dev \
zlib1g-dev \
; \
\
# Install php-zmq
cd /usr; \
curl -fSL https://github.com/zeromq/php-zmq/archive/ee5fbc693f07b2d6f0d9fd748f131be82310f386.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*; \
# END: Install php-zmq
\
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-configure gd --with-jpeg --with-freetype --with-webp; \
PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl; \
\
docker-php-ext-install \
pdo_pgsql \
pdo_mysql \
zip \
gd \
imap \
ldap \
exif \
pcntl \
posix \
bcmath \
; \
docker-php-ext-enable \
zmq \
; \
\
# reset a list of apt-mark
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; \
# Install required libs
apt-get install -y --no-install-recommends \
unzip \
libldap-common \
; \
rm -rf /var/lib/apt/lists/*
# php.ini
RUN { \
echo 'expose_php = Off'; \
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
%%ADDITIONS%%
ENV ESPOCRM_VERSION %%ESPOCRM_VERSION%%
ENV ESPOCRM_SHA256 %%ESPOCRM_SHA256%%
WORKDIR /var/www/html
RUN set -ex; \
curl -fSL "%%ESPOCRM_DOWNLOAD_URL%%" -o EspoCRM.zip; \
echo "${ESPOCRM_SHA256} *EspoCRM.zip" | sha256sum -c -; \
unzip -q EspoCRM.zip -d /usr/src; \
mv "/usr/src/EspoCRM-%%ESPOCRM_VERSION%%" /usr/src/espocrm; \
rm EspoCRM.zip; \
chown -R www-data:www-data /usr/src/espocrm
COPY ./docker-*.sh /usr/local/bin/
ENTRYPOINT [ "docker-entrypoint.sh" ]
CMD ["%%CMD%%"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。