2017-06-13 10:38:29 +02:00
|
|
|
FROM php:7.0-apache
|
2017-06-13 10:14:58 +02:00
|
|
|
|
2017-06-13 11:35:25 +02:00
|
|
|
ENV HUGO_VERSION 0.20.7
|
|
|
|
ENV HUGO_BINARY hugo_${HUGO_VERSION}_Linux-64bit.deb
|
2017-06-13 10:52:59 +02:00
|
|
|
|
2017-06-13 10:38:29 +02:00
|
|
|
RUN apt-get update && apt-get upgrade -y && \
|
2017-06-13 11:01:15 +02:00
|
|
|
apt-get install -y git curl
|
|
|
|
|
2017-06-13 11:35:25 +02:00
|
|
|
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
|
|
|
|
|
|
|
|
RUN mkdir /usr/share/blog
|
2017-06-13 10:38:29 +02:00
|
|
|
|
|
|
|
COPY site/ /usr/share/blog
|
2017-06-13 11:23:58 +02:00
|
|
|
|
2017-06-13 11:47:33 +02:00
|
|
|
RUN /usr/share/blog/build/build.sh /usr/share/blog/data/signatures/signatures.json
|
2017-06-13 11:42:16 +02:00
|
|
|
RUN cp -a /usr/share/blog/public/* /var/www/html
|
2017-06-13 10:38:29 +02:00
|
|
|
|