This should speed up build time on updates.pull/1/head
parent
795f396a19
commit
54e844793a
@ -1,11 +1,13 @@
|
|||||||
FROM golang:1.14-alpine
|
FROM golang:1.14-alpine
|
||||||
|
|
||||||
WORKDIR /go/src/Goff
|
WORKDIR /go/src/Goff
|
||||||
COPY . .
|
COPY ./go.mod .
|
||||||
|
|
||||||
RUN apk add --no-cache git
|
RUN apk add --no-cache git
|
||||||
|
|
||||||
RUN go get -d -v ./...
|
RUN go get -d -v ./...
|
||||||
|
|
||||||
|
COPY . .
|
||||||
RUN go install -v ./...
|
RUN go install -v ./...
|
||||||
|
|
||||||
ENTRYPOINT /go/bin/goff
|
ENTRYPOINT /go/bin/goff
|
||||||
|
|||||||
Loading…
Reference in new issue