Last active
August 17, 2022 20:28
-
-
Save garciasdos/b49fdbf8c1f06437b1d2c29db5ff538c to your computer and use it in GitHub Desktop.
Symfony 5.0 && PHP 7.4 minimal installation
This file contains 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.4-fpm-alpine | |
WORKDIR /var/www/app | |
RUN apk add bash | |
# intl | |
RUN apk add --quiet zlib-dev icu-dev g++ | |
RUN docker-php-ext-install intl && docker-php-ext-enable intl | |
# apcu | |
RUN apk add --quiet autoconf make | |
RUN docker-php-ext-enable opcache | |
# short_open_tags | |
RUN touch /usr/local/etc/php/conf.d/short_open_tag.ini \ | |
&& echo "short_open_tag=Off" >> /usr/local/etc/php/conf.d/short_open_tag.ini | |
RUN curl -sSk https://getcomposer.org/installer | php -- --disable-tls && \ | |
mv composer.phar /usr/local/bin/composer | |
RUN wget https://get.symfony.com/cli/installer -O - | bash | |
RUN echo 'export PATH="$HOME/.symfony/bin:$PATH"' >> /root/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment