Zencart 1.57+ Docker Compose MariaDB 10.5 Debian 10
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.

54 lines
1.5 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. FROM debian:10
  2. RUN apt-get update && apt-get install -y \
  3. libapache2-mod-php7.3 \
  4. curl \
  5. unzip \
  6. apt-utils \
  7. zlib1g-dev \
  8. libpng-dev \
  9. libmcrypt-dev \
  10. libzip-dev \
  11. zip
  12. RUN apt-get install -y \
  13. php7.3-mysql \
  14. php-zip \
  15. php7.3-gd \
  16. php7.3-dev \
  17. php7.3-opcache \
  18. php7.3-curl \
  19. && pecl install mcrypt-1.0.2
  20. RUN a2enmod rewrite
  21. RUN a2enmod ssl
  22. ENV APACHE_RUN_USER www-data
  23. ENV APACHE_RUN_GROUP www-data
  24. ENV APACHE_LOG_DIR /var/log/apache2
  25. ENV APACHE_PID_FILE /var/run/apache2.pid
  26. ENV APACHE_RUN_DIR /var/www/html/
  27. ENV APACHE_LOCK_DIR /var/lock/apache2
  28. WORKDIR /tmp
  29. RUN curl -LO https://sourceforge.net/projects/zencart/files/CURRENT%20-%20Zen%20Cart%201.5.x%20Series/zen-cart-v1.5.7c-03052021.zip/download \
  30. && unzip /tmp/download \
  31. && mv /tmp/zen-cart*/* /var/www/html/. \
  32. && cd /var/www/html \
  33. && cp includes/dist-configure.php includes/configure.php \
  34. && cp admin/includes/dist-configure.php admin/includes/configure.php \
  35. && chown -R www-data:www-data /var/www/html
  36. RUN echo '[Date]' > /etc/php/7.3/apache2/conf.d/timezone.ini \
  37. && echo 'date.timezone = "America/New_York"' >> /etc/php/7.3/apache2/conf.d/timezone.ini
  38. RUN ln -s /etc/apache2/sites-available/default-ssl.conf /etc/apache2/sites-enabled/default-ssl.conf
  39. RUN rm /var/www/html/index.html
  40. COPY ./newapache2conf /etc/apache2/apache2.conf
  41. VOLUME /var/www/html
  42. CMD ["/usr/sbin/apache2", "-D", "FOREGROUND"]