这是使用docker安装php intl的正确方法吗?
尽管我最后添加了这是使用docker安装php intl的正确方法吗?,php,docker,Php,Docker,尽管我最后添加了intl,但我的Github操作中从未安装过此功能 FROM composer:1.9.0 LABEL repository="https://github.com/ubient/laravel-vapor-action" LABEL homepage="https://github.com/ubient/laravel-vapor-action" LABEL maintainer="Claudio Dekker <cla
intl
,但我的Github操作中从未安装过此功能
FROM composer:1.9.0
LABEL repository="https://github.com/ubient/laravel-vapor-action"
LABEL homepage="https://github.com/ubient/laravel-vapor-action"
LABEL maintainer="Claudio Dekker <claudio@ubient.net>"
# Install required extenstions for laravel
# https://laravel.com/docs/6.x#server-requirements
RUN apk add libxml2-dev libpng-dev && \
docker-php-ext-install bcmath xml tokenizer mbstring gd intl
# Install Vapor + Prestissimo (parallel/quicker composer install)
RUN set -xe && \
composer global require hirak/prestissimo && \
composer global require laravel/vapor-cli && \
composer clear-cache
# Install Node.js (needed for Vapor's NPM Build)
RUN apk add --update nodejs npm
# Prepare out Entrypoint (used to run Vapor commands)
COPY vapor-entrypoint /usr/local/bin/vapor-entrypoint
ENTRYPOINT ["/usr/local/bin/vapor-entrypoint"]
来自composer:1.9.0的
标签存储库=”https://github.com/ubient/laravel-vapor-action"
标签主页=”https://github.com/ubient/laravel-vapor-action"
标签维护者=“克劳迪奥·德克尔”
#为laravel安装所需的延长件
# https://laravel.com/docs/6.x#server-要求
运行apk add libxml2 dev libpng dev&&\
docker php ext安装bcmath xml标记器mbstring gd intl
#安装Vapor+Prestissimo(并行/快速组合器安装)
运行集合-xe&&\
作曲家全球要求hirak/prestissimo&&\
composer global需要laravel/vapor cli&&\
编写器清除缓存
#安装Node.js(Vapor的NPM构建需要)
运行apk add--更新nodejs npm
#准备出入口点(用于运行Vapor命令)
复制蒸汽入口点/usr/local/bin/vapor入口点
入口点[“/usr/local/bin/vapor入口点”]
这个问题解决了
# Install INTL
RUN apk add icu-dev
RUN docker-php-ext-configure intl && docker-php-ext-install intl
我必须在我的一个项目中启用main非免费contrib来安装intl,这里是docker内容的回购。希望对你有所帮助。谢谢,但我需要严格修改上面的内容。。