Dockerfile 536 Bytes
Newer Older
Jørn Åne de Jong's avatar
Jørn Åne de Jong committed
1
FROM centos:centos7
2
3
4
5
6
7
RUN yum -y update \
	&& yum -y install epel-release https://rpms.remirepo.net/enterprise/remi-release-7.rpm yum-utils \
	&& yum-config-manager --enable remi-php72 \
	&& yum -y install composer lighttpd lighttpd-fastcgi php-cgi git \
	&& yum clean all \
	&& rm -rf /var/cache/yum
8
COPY composer.json composer.lock /var/www/
Jørn Åne de Jong's avatar
Jørn Åne de Jong committed
9
10
11
12
WORKDIR /var/www/
RUN composer install --no-dev
COPY www /var/www/www/
COPY dist /var/www/dist/
13
COPY dist/php.ini /etc/php.ini
Jørn Åne de Jong's avatar
Jørn Åne de Jong committed
14
15
CMD /usr/sbin/lighttpd -D -f /var/www/dist/lighttpd.conf
EXPOSE 80