1 Star 1 Fork 0

espocrm/docker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile-debian.template 2.98 KB
一键复制 编辑 原始数据 按行查看 历史
Taras Machyshyn 提交于 2024-08-14 20:23 . Updated libraries
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%%"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Docker
1
https://gitee.com/espocrm/docker.git
[email protected]:espocrm/docker.git
espocrm
docker
docker
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385