forked from meolu/walle-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (19 loc) · 848 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM php:apache
RUN apt-get update && apt-get install -y gettext-base libmcrypt-dev libicu-dev \
zlib1g-dev unzip git subversion ssh ansible && rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-install bcmath intl mbstring mcrypt mysqli opcache pdo_mysql
RUN a2enmod rewrite
COPY ./ /opt/walle-web
COPY docker/php.ini /usr/local/etc/php/conf.d/walle-web.ini
COPY docker/apache2.conf /etc/apache2/apache2.conf
COPY docker/entrypoint.sh /entrypoint.sh
WORKDIR /opt/walle-web
RUN curl -sS https://getcomposer.org/installer | php \
&& mv composer.phar /usr/local/bin/composer \
&& chmod +x /usr/local/bin/composer
RUN composer install --prefer-dist --no-dev --optimize-autoloader -vvvv
RUN chmod +x /entrypoint.sh && \
chown -R www-data:www-data /opt/walle-web
EXPOSE 80
ENTRYPOINT ["/entrypoint.sh"]
CMD ["apache2-foreground"]