Skip to content

Commit f365381

Browse files
committed
Really optimize build cache ⚡️
1 parent f71e6ec commit f365381

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
FROM golang:1.12 AS builder
22

3-
COPY . /usr/src/app
4-
53
WORKDIR /usr/src/app
64

75
COPY go.sum go.mod /usr/src/app/
86
RUN go get
97

8+
COPY . /usr/src/app
9+
1010
RUN CGO_ENABLED=0 go build -a -installsuffix nocgo -o swarm-operator-dind
1111

1212

0 commit comments

Comments
 (0)