Skip to content

Instantly share code, notes, and snippets.

@G33kDude
Created November 15, 2021 15:07
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 G33kDude/9d3a6429361ed148b66cca5fedb2acd4 to your computer and use it in GitHub Desktop.
Save G33kDude/9d3a6429361ed148b66cca5fedb2acd4 to your computer and use it in GitHub Desktop.
FROM php:7.3-apache
RUN docker-php-ext-install mysqli
# Use the default production configuration
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
# Path to search for mysql UNIX socket
RUN echo "mysqli.default_socket=/var/run/mysqld/mysqld.sock" >> $PHP_INI_DIR/php.ini
# Allow short open tags
RUN echo "short_open_tag=On" >> $PHP_INI_DIR/php.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment