Commit e2a91bb7 authored by Stanislav Shupilkin's avatar Stanislav Shupilkin

Add changes to Dcokerfile

parent 43c38004
...@@ -13,7 +13,7 @@ install: ...@@ -13,7 +13,7 @@ install:
- sudo pip install docker-compose - sudo pip install docker-compose
- docker-compose version - docker-compose version
- cat Dockerfile - cat Dockerfile
- docker-compose build --build-arg PHP_VERSION="${TRAVIS_PHP_VERSION}" - docker-compose build --build-arg PHP_VERSION=${TRAVIS_PHP_VERSION}
script: script:
- docker-compose up --exit-code-from php - docker-compose up --exit-code-from php
...@@ -5,8 +5,9 @@ FROM php:${PHP_VERSION}-cli ...@@ -5,8 +5,9 @@ FROM php:${PHP_VERSION}-cli
RUN pecl install xdebug RUN pecl install xdebug
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y autoconf pkg-config libssl-dev git && \ apt-get install -y autoconf pkg-config libssl-dev git zlib1g-dev
pecl install mongodb git zlib1g-dev && docker-php-ext-enable mongodb && \
RUN pecl install mongodb && docker-php-ext-enable mongodb && \
docker-php-ext-install -j$(nproc) pdo pdo_mysql zip && docker-php-ext-enable xdebug docker-php-ext-install -j$(nproc) pdo pdo_mysql zip && docker-php-ext-enable xdebug
RUN curl -sS https://getcomposer.org/installer | php \ RUN curl -sS https://getcomposer.org/installer | php \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment