Dockerfile 373 Bytes
Newer Older
Jørn Åne de Jong's avatar
Jørn Åne de Jong committed
1
2
3
FROM centos:centos7
RUN yum -y update
RUN yum -y install epel-release
4
RUN yum -y install composer lighttpd lighttpd-fastcgi php-cgi git
5
COPY composer.json composer.lock /var/www/
Jørn Åne de Jong's avatar
Jørn Åne de Jong committed
6
7
8
9
WORKDIR /var/www/
RUN composer install --no-dev
COPY www /var/www/www/
COPY dist /var/www/dist/
10
COPY dist/php.ini /etc/php.ini
Jørn Åne de Jong's avatar
Jørn Åne de Jong committed
11
12
CMD /usr/sbin/lighttpd -D -f /var/www/dist/lighttpd.conf
EXPOSE 80