giakAdi

DokerFile

Apr 23rd, 2021
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. FROM webdevops/php-apache-dev:7.4
  2.  
  3. # Paquets apt
  4. RUN apt update && apt install -y \
  5.         build-essential \
  6.         vim \
  7.         git \
  8.         icu-doc pciutils \
  9.         libcurl4-openssl-dev \
  10.         nano \
  11.         curl \
  12.  
  13. RUN pecl install mcrypt-1.0.3
  14.  
  15. RUN echo 'post_max_size = 18M' >> /opt/docker/etc/php/php.ini
  16. RUN echo 'upload_max_filesize = 16M' >> /opt/docker/etc/php/php.ini
  17. RUN echo 'memory_limit = 2G' >> /opt/docker/etc/php/php.ini
  18.  
  19. #SetUp locales
  20. RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
  21.     echo "fr_FR.UTF-8 UTF-8" >> /etc/locale.gen && \
  22.     locale-gen
  23.  
  24.  
  25. # Setup prompt aliases
  26. RUN echo 'alias ll="ls -al"' >> ~/.bashrc
  27.  
  28.  
  29. # Fuseaux horaire
  30. RUN rm /etc/localtime
  31. RUN ln -s /usr/share/zoneinfo/Europe/Paris /etc/localtime
  32.  
  33. # Extensions PHP
  34. RUN echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /opt/docker/etc/php/conf.d/xdebug.ini \
  35.     && echo "xdebug.remote_enable=On" >> /opt/docker/etc/php/conf.d/xdebug.ini \
  36.     && echo "xdebug.remote_autostart=On" >> /opt/docker/etc/php/conf.d/xdebug.ini \
  37.     && echo "xdebug.remote_connect_back=On" >> /opt/docker/etc/php/conf.d/xdebug.ini \
  38.     && echo "xdebug.idekey=PHPSTORM" >> /opt/docker/etc/php/conf.d/xdebug.ini
  39.  
  40.  
  41.  
  42. # nodejs
  43. RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash -
  44. RUN apt install -y nodejs
  45.  
  46. # Yarn
  47. RUN npm install -g yarn
  48. RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
  49. RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
  50.  
  51. # Webpack
  52. RUN npm install -g webpack
  53.  
  54. # Composer
  55. RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
  56.  
  57.  
  58. # Install Symfony CLI#
  59. RUN wget https://get.symfony.com/cli/installer -O - | bash
  60. RUN mv /root/.symfony/bin/symfony /usr/local/bin/symfony
  61.  
  62.  
  63. EXPOSE 80
  64. EXPOSE 443
  65.  
Add Comment
Please, Sign In to add comment