Files
goreportcard/Dockerfile
Chad Grant 279a368013 Update Dockerfile
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)
2020-01-01 23:38:50 -08:00

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