hugo/Dockerfile
Gilbert Gilb's c7646551be Dockerfile: Remove ENTRYPOINT
It's pointless to set `/bin/sh` as entrypoint. `/bin/sh` is already the default command, and on the top of that, setting `/bin/sh` as entrypoint ignores the command.
2017-05-14 09:56:03 +02:00

15 lines
389 B
Docker

FROM golang:1.8-alpine
ENV GOPATH /go
ENV USER root
RUN apk update && apk add git make
# pre-install known dependencies before the source, so we don't redownload them whenever the source changes
RUN go get github.com/kardianos/govendor \
&& govendor get github.com/spf13/hugo
COPY . $GOPATH/src/github.com/spf13/hugo
RUN cd $GOPATH/src/github.com/spf13/hugo \
&& make install test