Skip to content
Permalink
Browse files

env: Updated used PHP version and update composer to latest stable.

  • Loading branch information...
tarlepp committed Aug 4, 2019
1 parent 2cc427b commit d0df5db56c2ce069747c1a80fdc9cfe0a618bbd2
Showing with 9 additions and 3 deletions.
  1. +4 −1 Dockerfile
  2. +5 −2 Dockerfile_dev
@@ -1,5 +1,5 @@
FROM composer:1.8.6 AS composer
FROM php:7.3.7-fpm
FROM php:7.3.8-fpm

RUN apt-get update && apt-get install -y \
zlib1g-dev libzip-dev libxml2-dev libicu-dev g++ nano vim git unzip jq bash-completion iproute2 \
@@ -22,6 +22,9 @@ RUN pecl install apcu \
# copy the Composer PHAR from the Composer image into the PHP image
COPY --from=composer /usr/bin/composer /usr/bin/composer

# Update composer to latest version
RUN composer self-update

ENV COMPOSER_ALLOW_SUPERUSER 1
ENV APP_ENV prod

@@ -1,5 +1,5 @@
FROM composer:1.8.6 AS composer
FROM php:7.3.7-fpm
FROM php:7.3.8-fpm

# Let's use bash as a default shell
SHELL ["/bin/bash", "-c"]
@@ -17,7 +17,7 @@ RUN docker-php-ext-install -j$(nproc) bcmath \
&& docker-php-ext-install intl \
&& docker-php-ext-install opcache \
&& docker-php-ext-install zip \
&& pecl install xdebug-2.7.1 \
&& pecl install xdebug-2.7.2 \
&& docker-php-ext-enable xdebug

# Install APCu and APC backward compatibility
@@ -29,6 +29,9 @@ RUN pecl install apcu \
# Copy the Composer PHAR from the Composer image into the PHP image
COPY --from=composer /usr/bin/composer /usr/bin/composer

# Update composer to latest version
RUN composer self-update

# Copy use php.ini to container
COPY ./docker/php/php-dev.ini /usr/local/etc/php/php.ini

0 comments on commit d0df5db

Please sign in to comment.
You can’t perform that action at this time.