Skip to content

Instantly share code, notes, and snippets.

@garciasdos
Last active August 17, 2022 20:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garciasdos/b49fdbf8c1f06437b1d2c29db5ff538c to your computer and use it in GitHub Desktop.
Save garciasdos/b49fdbf8c1f06437b1d2c29db5ff538c to your computer and use it in GitHub Desktop.
Symfony 5.0 && PHP 7.4 minimal installation
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