Created
April 8, 2018 19:06
-
-
Save Huholoman/c90282b4d7a86a2f2d96f936bc02f95a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.2.4-fpm-stretch | |
RUN \ | |
apt-get update && \ | |
apt-get install -y nano git curl msmtp libpq-dev && \ | |
docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql && \ | |
docker-php-ext-install pdo pdo_pgsql pgsql | |
RUN \ | |
apt-get install -y zlib1g-dev && \ | |
docker-php-ext-install zip && \ | |
pecl install xdebug && \ | |
docker-php-ext-enable xdebug && \ | |
# | |
rm -rf \ | |
/tmp/* \ | |
/var/lib/apt/lists/* \ | |
/var/tmp/* | |
RUN \ | |
usermod -u 1000 www-data && \ | |
groupmod -g 1000 www-data && \ | |
usermod -d /home/www-data -s /bin/bash www-data | |
# Install composer system-wide | |
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \ | |
chmod +x /usr/local/bin/composer && \ | |
chown www-data:www-data /usr/local/bin/composer | |
RUN mkdir -p /www | |
WORKDIR /www |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment