-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (29 loc) · 805 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM ubuntu:16.04
MAINTAINER George Sumpster <gsumpster@gmail.com>
RUN apt-get update -q && \
apt install -y \
nginx \
git \
php \
php7.0-fpm \
php7.0-cli \
php7.0-gd \
php7.0-curl \
php7.0-mbstring \
php7.0-xml \
php7.0-zip \
php-apcu
RUN rm /etc/php/7.0/fpm/pool.d/www.conf
COPY grav.conf /etc/php/7.0/fpm/pool.d/
COPY grav /etc/nginx/sites-avaliable/
RUN ln -s /etc/nginx/sites-avaliable/grav /etc/nginx/sites-enabled/grav
RUN rm /etc/nginx/sites-enabled/default
RUN adduser --disabled-password --gecos '' grav
RUN git clone https://github.com/getgrav/grav.git /home/grav/www/
WORKDIR /home/grav/www/
RUN bin/composer.phar self-update
RUN bin/grav install
RUN chown -R grav:grav .
CMD service php7.0-fpm start && nginx -g "daemon off;"
VOLUME /home/grav/www
EXPOSE 80