Dockerfile fixes/optimizations.

This commit is contained in:
Tomasz Mieszkowski
2016-07-03 14:17:18 +02:00
parent d7ca2b113b
commit 25de4f4b0a
2 changed files with 7 additions and 5 deletions

View File

@@ -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"]

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
go get github.com/alecthomas/gometalinter
gometalinter --install --update