Skip to content

Commit

Permalink
fix(docker): cache Go depedency downloads to optimise docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Jan 6, 2020
1 parent 8e45d50 commit aba22f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/cosmic-swingset/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
FROM golang:stretch

WORKDIR /usr/src/app
COPY Makefile* *.go go.* ./
COPY go.mod go.sum ./
RUN go mod download

COPY Makefile* *.go ./
COPY x/ x/
COPY cmd/ cmd/
COPY lib/*.go lib/
Expand Down

0 comments on commit aba22f0

Please sign in to comment.