这是使用docker安装php-intl的正确方法吗



即使我最后添加了intl,它也从未安装在我的Github Actions上。

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"]

这修复了

# Install INTL
RUN apk add icu-dev 
RUN docker-php-ext-configure intl && docker-php-ext-install intl

https://github.com/aligajani/laravel-vapor-action/

最新更新