Skip to content

Instantly share code, notes, and snippets.

@takeit
Last active February 12, 2018 07:33
Show Gist options
  • Save takeit/5e648110b9a5d13aabbc63627c14ab6c to your computer and use it in GitHub Desktop.
Save takeit/5e648110b9a5d13aabbc63627c14ab6c to your computer and use it in GitHub Desktop.
FROM php:7.2-fpm
RUN apt-get update
RUN apt-get install -y zlib1g-dev libpq-dev git libicu-dev libxml2-dev \
&& docker-php-ext-configure intl \
&& docker-php-ext-install intl \
&& docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \
&& docker-php-ext-install pdo pdo_pgsql pgsql \
&& docker-php-ext-install zip xml
RUN curl --insecure https://getcomposer.org/composer.phar -o /usr/bin/composer && chmod +x /usr/bin/composer
# Set timezone
RUN rm /etc/localtime
RUN ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime
RUN "date"
WORKDIR /var/www/symfony
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment