21 lines
489 B
Docker
21 lines
489 B
Docker
FROM php:7.0-apache
|
|
|
|
ENV HUGO_VERSION 0.20.7
|
|
ENV HUGO_BINARY hugo_${HUGO_VERSION}_Linux-64bit.deb
|
|
|
|
RUN apt-get update && apt-get upgrade -y && \
|
|
apt-get install -y git curl
|
|
|
|
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
|
|
|
|
COPY site/ /usr/share/blog
|
|
|
|
RUN /usr/share/blog/build/build.sh
|
|
RUN rmdir /var/www/html/
|
|
RUN ln -s /usr/share/blog/public /var/www/html
|
|
|