Goff/Dockerfile
Dusty Pianalto 54e844793a Update Dockerfile to get dependencies before copying files
This should speed up build time on updates.
2020-06-03 21:32:32 -08:00

14 lines
173 B
Docker

FROM golang:1.14-alpine
WORKDIR /go/src/Goff
COPY ./go.mod .
RUN apk add --no-cache git
RUN go get -d -v ./...
COPY . .
RUN go install -v ./...
ENTRYPOINT /go/bin/goff