2 Star 28 Fork 7

huagelong/eduxplus

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.79 KB
一键复制 编辑 原始数据 按行查看 历史
huagelong 提交于 2023-09-11 09:27 . v1.0.0-beta 版本发布
FROM alpine:3.15
WORKDIR /var/www/symfony
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
RUN apk add --update --no-cache \
supervisor \
coreutils \
php7-fpm \
php7-apcu \
php7-ctype \
php7-curl \
php7-dom \
php7-gd \
php7-iconv \
php7-imagick \
php7-json \
php7-intl \
php7-mcrypt \
php7-fileinfo\
php7-mbstring \
php7-opcache \
php7-openssl \
php7-pdo \
php7-pdo_mysql \
php7-mysqli \
php7-xml \
php7-redis \
php7-zlib \
php7-phar \
php7-tokenizer \
php7-session \
php7-simplexml \
php7-xdebug \
php7-zip \
php7-xmlwriter \
make \
curl \
git \
busybox-extras
RUN curl -s https://getcomposer.org/installer | php \
&& chmod +x composer.phar && mv composer.phar /usr/bin/composer
COPY ./docs/docker/php-fpm/symfony.ini /etc/php7/conf.d/
COPY ./docs/docker/php-fpm/symfony.ini /etc/php7/cli/conf.d/
COPY ./docs/docker/php-fpm/xdebug.ini /etc/php7/conf.d/
COPY ./docs/docker/php-fpm/symfony.pool.conf /etc/php7/php-fpm.d/
COPY ./docs/docker/supervisord.ini /etc/supervisor.d/supervisord.ini
RUN apk add --update --no-cache nginx
COPY ./docs/docker/nginx/nginx.conf /etc/nginx/
COPY ./docs/docker/nginx/symfony.conf /etc/nginx/conf.d/
RUN echo "upstream php-upstream { server 127.0.0.1:9001; }" > /etc/nginx/conf.d/upstream.conf
RUN adduser -D -g '' -G www-data www-data
COPY . ./
RUN mv ./.env.docker ./.env.local
RUN composer config -g repo.packagist composer https://packagist.phpcomposer.com
RUN composer install
RUN composer afterDeploy
RUN echo "* * * * * cd /var/www/symfony && php ./bin/console schedule:run >> /dev/null 2>&1" >> /etc/crontabs/root
CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisord.conf"]
EXPOSE 80
EXPOSE 443
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/huagelong/eduxplus.git
git@gitee.com:huagelong/eduxplus.git
huagelong
eduxplus
eduxplus
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385