File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1- FROM php:7.4
1+ FROM php:8.0
22
33# Install linux dependencies
44RUN apt-get update && apt-get install -qq curl apt-transport-https git build-essential \
@@ -15,11 +15,12 @@ RUN docker-php-ext-enable mcrypt
1515# Install additional php extensions
1616RUN docker-php-ext-install zip gd exif sodium
1717
18- # Install docker
19- RUN curl -sSL https://get.docker.com/ | sh
20-
2118# Install Composer
22- RUN curl --silent --show-error https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
19+ # copy the Composer PHAR from the Composer image into the PHP image
20+ ENV COMPOSER_ALLOW_SUPERUSER 1
21+ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
22+ # show that both Composer and PHP run as expected
23+ RUN composer --version && php -v && composer global config --list | grep "vendor-dir" && sleep 5s
2324
2425# Install Laravel Envoy
2526RUN composer global require "laravel/envoy=~1.0"
You can’t perform that action at this time.
0 commit comments