1 Star 0 Fork 0

james/webman-dock

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 1.76 KB
一键复制 编辑 原始数据 按行查看 历史
yasarluo 提交于 2020-11-26 17:33 . fix keyserver error in centos #2
FROM php:7.4-cli
# Set working dir.
ARG CONTAINER_APP_DIR
WORKDIR ${CONTAINER_APP_DIR}
RUN uname -a && \
apt update
# Change ubuntu source.
# Reference: https://github.com/laradock/laradock
ARG UBUNTU_SOURCE
ARG CHANGE_UBUNTU_SOURCE
COPY ./sources.sh /tmp/sources.sh
RUN if [ ${CHANGE_UBUNTU_SOURCE} = true ]; then \
apt-get install -y gnupg2 && \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3B4FE6ACC0B21F32 && \
chmod +x /tmp/sources.sh && \
/bin/bash -c /tmp/sources.sh && \
rm -rf /tmp/sources.sh && \
apt update \
;fi
# Install php ext.
RUN apt-get remove -y libssl1.1 && \
apt-get install libssl1.1 krb5-locales libkrb5support0=1.16-2ubuntu0.2 libkrb5-3 libgssapi-krb5-2 libcurl4 --allow-downgrades -y && \
docker-php-ext-install sockets pcntl && \
docker-php-ext-install pdo_mysql && \
pecl install redis && \
docker-php-ext-enable redis && \
apt-get install libssl-dev -y
ARG INSTALL_LIB_EVENT
RUN if [ ${INSTALL_LIB_EVENT} = true ]; then \
apt-get install libevent-dev -y && \
pecl install event && \
echo extension=event.so > /usr/local/etc/php/conf.d/event.ini \
;fi
# Install composer and set mirror.
# Reference: https://pkg.phpcomposer.com/#how-to-install-composer
# Referencr: https://developer.aliyun.com/composer
ARG INSTALL_COMPOSER
ARG COMPOSER_INSTALLER
ARG COMPOSER_MIRROR
RUN if [ ${INSTALL_COMPOSER} = true ]; then \
php -r "copy('${COMPOSER_INSTALLER}', 'composer-setup.php');" && \
php composer-setup.php && \
php -r "unlink('composer-setup.php');" && \
mv composer.phar /usr/local/bin/composer && \
composer config -g repo.packagist composer ${COMPOSER_MIRROR} \
;fi
RUN apt-get install git zip vim -y
# Expose port
ARG CONTAINER_PORT
EXPOSE ${CONTAINER_PORT}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/ppkosdd/webman-dock.git
git@gitee.com:ppkosdd/webman-dock.git
ppkosdd
webman-dock
webman-dock
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385