Skip to content

Commit 56d27c6

Browse files
committed
php 8.0
1 parent 8073de8 commit 56d27c6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:7.4
1+
FROM php:8.0
22

33
# Install linux dependencies
44
RUN 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
1616
RUN 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
2526
RUN composer global require "laravel/envoy=~1.0"

0 commit comments

Comments
 (0)