test Drupal site working on Koality Theme Builder
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.1 KiB

4 years ago
  1. FROM drupal:8.6
  2. # Set the Drush version.
  3. ENV DRUSH_VERSION 8.1.18
  4. # Install Drush 8 with the phar file.
  5. RUN curl -fsSL -o /usr/local/bin/drush "https://github.com/drush-ops/drush/releases/download/$DRUSH_VERSION/drush.phar" && \
  6. chmod +x /usr/local/bin/drush
  7. RUN apt-get update && apt-get install -y libxml2-dev imagemagick mysql-client ssmtp --no-install-recommends
  8. RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli
  9. ADD https://drupalconsole.com/installer /usr/local/bin/drupal
  10. RUN chmod +x /usr/local/bin/drupal
  11. RUN { \
  12. echo 'memory_limit = 196M'; \
  13. echo 'display_errors = Off'; \
  14. echo 'post_max_size = 512M'; \
  15. echo 'file_uploads = On'; \
  16. echo 'upload_max_filesize = 512M'; \
  17. echo 'max_file_uploads = 20'; \
  18. } > /usr/local/etc/php/conf.d/codekoalas-settings.ini
  19. RUN echo 'sendmail_path = "/usr/sbin/ssmtp -t -i"' > /usr/local/etc/php/conf.d/mail.ini
  20. RUN sed -i 's/\/var\/www\/html/\/var\/www\/html\/docroot/g' /etc/apache2/sites-available/000-default.conf
  21. RUN rm -rf /var/www/html/*
  22. COPY ./ /var/www/html
  23. RUN chmod a+x ./run.sh
  24. ENTRYPOINT ["/bin/sh", "-c"]
  25. CMD ["./run.sh"]