mirror of
https://github.com/gojp/goreportcard.git
synced 2026-01-28 22:39:05 +08:00
Dockerfile fixes/optimizations.
This commit is contained in:
10
Dockerfile
10
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"]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
go get github.com/alecthomas/gometalinter
|
||||
gometalinter --install --update
|
||||
|
||||
Reference in New Issue
Block a user