Skip to content

Instantly share code, notes, and snippets.

@Luitame
Created January 27, 2020 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Luitame/5aa3af29038d3b33e65f262504745b42 to your computer and use it in GitHub Desktop.
Save Luitame/5aa3af29038d3b33e65f262504745b42 to your computer and use it in GitHub Desktop.
PHP com Rapadura
FROM php:7.3-fpm-alpine
# mysqli, pdo, pdo_mysql
RUN docker-php-ext-install mysqli pdo pdo_mysql
# git client, mysql-client
# zlib-dev zip
RUN apk update
RUN apk add gd php7-gd
RUN docker-php-ext-install sockets pdo_mysql
RUN apk add --no-cache libpng libpng-dev && docker-php-ext-install gd
RUN apk add --update --no-cache git mysql-client
#################################################################################################
# Install Composer
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
RUN php composer-setup.php --install-dir=/usr/local/bin --filename=composer
RUN php -r "unlink('composer-setup.php');"
#################################################################################################
# RUN php --info | grep -i gd
RUN sed -i -e 's/listen.*/listen = 0.0.0.0:9000/' /usr/local/etc/php-fpm.conf
RUN echo "expose_php=0" > /usr/local/etc/php/php.ini
CMD ["php-fpm"]
# ENTRYPOINT ["/entrypoint.sh"]
# RUN docker run --rm --interactive --tty --volume $PWD:/app composer install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment