代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。