代码拉取完成,页面将自动刷新
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."
# Install php libs
RUN set -ex; \
apk add --no-cache --virtual .build-deps \
postgresql-dev \
libzip-dev \
libpng-dev \
libjpeg-turbo-dev \
libwebp-dev \
freetype-dev \
openldap-dev \
imap-dev \
libzmq \
zeromq-dev \
bash \
$PHPIZE_DEPS \
; \
\
# 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
\
docker-php-ext-configure gd --with-jpeg --with-webp --with-freetype; \
\
docker-php-ext-install \
pdo_pgsql \
pdo_mysql \
zip \
gd \
imap \
ldap \
exif \
pcntl \
posix \
bcmath \
; \
docker-php-ext-enable zmq
# 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%%"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。