1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00:00
dockerfiles/prestashop/Dockerfile

32 lines
940 B
Docker
Raw Normal View History

2017-12-19 07:01:51 +00:00
#
# Dockerfile for prestashop
#
2019-04-03 10:59:31 +00:00
FROM php:7.3-apache
2017-12-19 07:01:51 +00:00
MAINTAINER kev <noreply@easypi.pro>
RUN a2enmod rewrite
RUN set -xe \
&& apt-get update \
&& apt-get install -y libicu-dev libpng-dev libjpeg-dev libmcrypt-dev unzip \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure intl \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install intl gd mbstring mcrypt opcache pdo pdo_mysql zip
WORKDIR /var/www/html
2019-04-03 10:59:31 +00:00
ENV PS_VER 1.7.5.1
ENV PS_MD5 7ec5bf2ce9c5d0d369c76ae5d0a716a3
2017-12-19 07:01:51 +00:00
ENV PS_URL https://download.prestashop.com/download/releases/prestashop_${PS_VER}.zip
ENV PS_FILE prestashop_${PS_VER}.zip
RUN set -xe \
&& echo "short_open_tag=off" >> /usr/local/etc/php/php.ini \
&& curl -sSL ${PS_URL} -o ${PS_FILE} \
&& echo "${PS_MD5} ${PS_FILE}" | md5sum -c \
&& unzip ${PS_FILE} \
&& rm ${PS_FILE} \
&& chown -R www-data:www-data /var/www