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

FROM debian:10
RUN apt-get update && apt-get install -y \
libapache2-mod-php7.3 \
curl \
unzip \
apt-utils \
zlib1g-dev \
libpng-dev \
libmcrypt-dev \
libzip-dev \
zip
RUN apt-get install -y \
php7.3-mysql \
php-zip \
php7.3-gd \
php7.3-dev \
php7.3-opcache \
php7.3-curl \
&& pecl install mcrypt-1.0.2
RUN a2enmod rewrite
RUN a2enmod ssl
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2
ENV APACHE_PID_FILE /var/run/apache2.pid
ENV APACHE_RUN_DIR /var/www/html/
ENV APACHE_LOCK_DIR /var/lock/apache2
WORKDIR /tmp
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 \
&& unzip /tmp/download \
&& mv /tmp/zen-cart*/* /var/www/html/. \
&& cd /var/www/html \
&& cp includes/dist-configure.php includes/configure.php \
&& cp admin/includes/dist-configure.php admin/includes/configure.php \
&& chown -R www-data:www-data /var/www/html
RUN echo '[Date]' > /etc/php/7.3/apache2/conf.d/timezone.ini \
&& echo 'date.timezone = "America/New_York"' >> /etc/php/7.3/apache2/conf.d/timezone.ini
RUN ln -s /etc/apache2/sites-available/default-ssl.conf /etc/apache2/sites-enabled/default-ssl.conf
RUN rm /var/www/html/index.html
COPY ./newapache2conf /etc/apache2/apache2.conf
VOLUME /var/www/html
CMD ["/usr/sbin/apache2", "-D", "FOREGROUND"]