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:19:14 +02:00
|
|
|
ENV PATH ${PATH}:/usr/local/go/bin:/srv/go/bin:${HOME}/go/bin/
|
2017-06-13 10:52:59 +02:00
|
|
|
ENV GOPATH /srv/go
|
|
|
|
RUN mkdir /srv/go
|
|
|
|
|
2017-06-13 10:38:29 +02:00
|
|
|
RUN mkdir /usr/share/blog
|
|
|
|
RUN apt-get update && apt-get upgrade -y && \
|
2017-06-13 11:01:15 +02:00
|
|
|
apt-get install -y git curl
|
|
|
|
RUN curl -O https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz
|
|
|
|
RUN tar xvf go1.8.3.linux-amd64.tar.gz
|
|
|
|
RUN mv go /usr/local
|
|
|
|
|
2017-06-13 10:44:10 +02:00
|
|
|
RUN go get github.com/kardianos/govendor
|
|
|
|
RUN govendor get github.com/spf13/hugo
|
2017-06-13 10:38:29 +02:00
|
|
|
|
|
|
|
COPY site/ /usr/share/blog
|
2017-06-13 10:14:58 +02:00
|
|
|
RUN /usr/share/blog/build/build.sh
|
2017-06-13 10:38:29 +02:00
|
|
|
RUN rmdir /var/www/html/
|
|
|
|
RUN ln -s /usr/share/blog/public /var/www/html
|
|
|
|
|