summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorHauke Löffler <hloeffler@users.noreply.github.com>2017-02-23 00:17:14 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-02-23 00:17:14 +0100
commit831bfd36aaf18de8ffa6a8f63519ab3e541fa4dd (patch)
tree96ce86faf250e03b0a015e42e45b815974367d8d /Dockerfile
parent4d679627ecf7801ee80cbd37909155728249829e (diff)
Update Docker file to Go 1.8
* new go-version, switch to alpine (reduce size by 500mb) * use govendor
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile50
1 files changed, 9 insertions, 41 deletions
diff --git a/Dockerfile b/Dockerfile
index e02830212..159700a24 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,49 +1,17 @@
-FROM golang:1.6.2
-MAINTAINER Sven Dowideit <SvenDowideit@home.org.au>
+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/stretchr/testify/assert \
- && go get github.com/kyokomi/emoji \
- && go get github.com/bep/inflect \
- && go get github.com/BurntSushi/toml \
- && go get github.com/PuerkitoBio/purell \
- && go get github.com/PuerkitoBio/urlesc \
- && go get github.com/dchest/cssmin \
- && go get github.com/eknkc/amber \
- && go get github.com/gorilla/websocket \
- && go get github.com/kardianos/osext \
- && go get github.com/miekg/mmark \
- && go get github.com/mitchellh/mapstructure \
- && go get github.com/russross/blackfriday \
- && go get github.com/shurcooL/sanitized_anchor_name \
- && go get github.com/spf13/afero \
- && go get github.com/spf13/cast \
- && go get github.com/spf13/jwalterweatherman \
- && go get github.com/spf13/cobra \
- && go get github.com/cpuguy83/go-md2man \
- && go get github.com/inconshreveable/mousetrap \
- && go get github.com/spf13/pflag \
- && go get github.com/spf13/fsync \
- && go get github.com/spf13/viper \
- && go get github.com/kr/pretty \
- && go get github.com/kr/text \
- && go get github.com/magiconair/properties \
- && go get golang.org/x/text/transform \
- && go get golang.org/x/text/unicode/norm \
- && go get github.com/yosssi/ace \
- && go get github.com/spf13/nitro \
- && go get github.com/fortytw2/leaktest \
- && go get github.com/fsnotify/fsnotify \
- && go get github.com/bep/gitmap \
- && go get github.com/nicksnyder/go-i18n/i18n
+RUN go get github.com/kardianos/govendor \
+ && govendor get github.com/spf13/hugo
-COPY . /go/src/github.com/spf13/hugo
+COPY . $GOPATH/src/github.com/spf13/hugo
-RUN cd /go/src/github.com/spf13/hugo \
- && go get -d -v \
- && go install \
- && go test github.com/spf13/hugo/...
+RUN cd $GOPATH/src/github.com/spf13/hugo \
+ && make install test
+ENTRYPOINT "/bin/sh"