forked from fossasia/publiccode.asia-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (16 loc) · 698 Bytes
/
Dockerfile
File metadata and controls
26 lines (16 loc) · 698 Bytes
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
FROM php:7.0-apache
ENV HUGO_VERSION 0.26
ENV HUGO_BINARY hugo_${HUGO_VERSION}_Linux-64bit.deb
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y git curl unzip python3 python3-pip libyaml-dev
RUN pip3 install awscli
RUN curl -sS https://getcomposer.org/installer \
| php -- --install-dir=/usr/local/bin --filename=composer
RUN composer require phpmailer/phpmailer
RUN a2enmod rewrite
ADD https://github.com/spf13/hugo/releases/download/v${HUGO_VERSION}/${HUGO_BINARY} /tmp/hugo.deb
RUN dpkg -i /tmp/hugo.deb \
&& rm /tmp/hugo.deb
COPY site/ /usr/share/blog
COPY 000-default.conf /etc/apache2/sites-enabled/
CMD /usr/share/blog/build/build.sh && apache2-foreground