即使我添加了 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/
关于php - 这是使用 docker 安装 php-intl 的正确方法吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63463118/