Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM webdevops/php-apache-dev:7.4
- # Paquets apt
- RUN apt update && apt install -y \
- build-essential \
- vim \
- git \
- icu-doc pciutils \
- libcurl4-openssl-dev \
- nano \
- curl \
- RUN pecl install mcrypt-1.0.3
- RUN echo 'post_max_size = 18M' >> /opt/docker/etc/php/php.ini
- RUN echo 'upload_max_filesize = 16M' >> /opt/docker/etc/php/php.ini
- RUN echo 'memory_limit = 2G' >> /opt/docker/etc/php/php.ini
- #SetUp locales
- RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
- echo "fr_FR.UTF-8 UTF-8" >> /etc/locale.gen && \
- locale-gen
- # Setup prompt aliases
- RUN echo 'alias ll="ls -al"' >> ~/.bashrc
- # Fuseaux horaire
- RUN rm /etc/localtime
- RUN ln -s /usr/share/zoneinfo/Europe/Paris /etc/localtime
- # Extensions PHP
- RUN echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /opt/docker/etc/php/conf.d/xdebug.ini \
- && echo "xdebug.remote_enable=On" >> /opt/docker/etc/php/conf.d/xdebug.ini \
- && echo "xdebug.remote_autostart=On" >> /opt/docker/etc/php/conf.d/xdebug.ini \
- && echo "xdebug.remote_connect_back=On" >> /opt/docker/etc/php/conf.d/xdebug.ini \
- && echo "xdebug.idekey=PHPSTORM" >> /opt/docker/etc/php/conf.d/xdebug.ini
- # nodejs
- RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash -
- RUN apt install -y nodejs
- # Yarn
- RUN npm install -g yarn
- RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
- RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
- # Webpack
- RUN npm install -g webpack
- # Composer
- RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- # Install Symfony CLI#
- RUN wget https://get.symfony.com/cli/installer -O - | bash
- RUN mv /root/.symfony/bin/symfony /usr/local/bin/symfony
- EXPOSE 80
- EXPOSE 443
Add Comment
Please, Sign In to add comment