mirror of
https://github.com/gojp/goreportcard.git
synced 2026-01-28 22:39:05 +08:00
Should create the base layer of apk add first so the cache is not invalidated when code changes Should not apk/apt upgrade in docker images (bloats image)
15 lines
284 B
Docker
15 lines
284 B
Docker
FROM golang:1.12.5-alpine
|
|
|
|
RUN apk add --update --no-cache git make \
|
|
&& go get golang.org/x/tools/go/vcs
|
|
|
|
COPY . $GOPATH/src/github.com/gojp/goreportcard
|
|
|
|
WORKDIR $GOPATH/src/github.com/gojp/goreportcard
|
|
|
|
RUN ./scripts/make-install.sh
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["make", "start"]
|