Skip to content

Commit 86ae018

Browse files
authored
fix docker layer caching (#102)
1 parent fa0edfa commit 86ae018

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
# Build the manager binary
21
FROM public.ecr.aws/bitnami/golang:1.17 as builder
32

43
## GOLANG env
54
ARG GOPROXY="https://proxy.golang.org|direct"
65
ARG GO111MODULE="on"
7-
ARG CGO_ENABLED=0
8-
ARG GOOS=linux
9-
ARG GOARCH=amd64
106

117
# Copy go.mod and download dependencies
128
WORKDIR /amazon-ec2-instance-selector
139
COPY go.mod .
1410
COPY go.sum .
1511
RUN go mod download
1612

13+
ARG CGO_ENABLED=0
14+
ARG GOOS=linux
15+
ARG GOARCH=amd64
16+
1717
# Build
1818
COPY . .
1919
RUN make build

0 commit comments

Comments
 (0)