diff --git a/Dockerfile b/Dockerfile index 3675afd..6ff4d33 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,13 @@ -FROM golang:1.6 - -RUN go get golang.org/x/tools/go/vcs +FROM golang:1.6-alpine COPY . $GOPATH/src/github.com/gojp/goreportcard WORKDIR $GOPATH/src/github.com/gojp/goreportcard -EXPOSE 8080 +RUN apk update && apk upgrade && apk add --no-cache git make \ + && go get golang.org/x/tools/go/vcs \ + && ./scripts/make-install.sh + +EXPOSE 8000 CMD ["make", "start"] diff --git a/scripts/make-install.sh b/scripts/make-install.sh index e143aa9..2fe8bce 100755 --- a/scripts/make-install.sh +++ b/scripts/make-install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh go get github.com/alecthomas/gometalinter gometalinter --install --update