Skip to content

Commit

Permalink
Update the docker setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jakzal committed Jan 20, 2020
1 parent 9554d34 commit d0396e8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
FROM php:7.0
FROM php:7.4

MAINTAINER Jakub Zalas <[email protected]>

RUN buildDeps="zlib1g-dev libicu-dev" \
&& apt-get update && apt-get install --no-install-recommends -y git libicu52 $buildDeps && rm -r /var/lib/apt/lists/* \
&& docker-php-ext-install intl zip pcntl mbstring bcmath \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $buildDeps
RUN buildDeps="zlib1g-dev libzip-dev libonig-dev" \
&& apt-get update && apt-get install --no-install-recommends -y git $buildDeps && rm -r /var/lib/apt/lists/* \
&& docker-php-ext-install zip pcntl mbstring bcmath \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false

RUN echo "date.timezone=UTC" >> $PHP_INI_DIR/php.ini \
&& echo "error_reporting=E_ALL" >> $PHP_INI_DIR/php.ini

RUN php -r "readfile('https://getcomposer.org/installer');" | php -- --install-dir=/usr/local/bin --filename=composer
COPY --from=composer:1.9 /usr/bin/composer /usr/bin/composer

VOLUME ["/root/.composer/cache"]

0 comments on commit d0396e8

Please sign in to comment.