1 Star 1 Fork 0

espocrm/docker

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

搜索帮助

0d507c66 1850385 C8b1a773 1850385