Skip to content

Commit

Permalink
remove go mod download from dockerfiles (#2383)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdn5126 authored May 17, 2023
1 parent fb72ec0 commit 1a4bf1f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
8 changes: 1 addition & 7 deletions scripts/dockerfiles/Dockerfile.init
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,8 @@ ARG TARGETARCH
ENV GO111MODULE=on
ENV GOPROXY=direct

# Copy modules in before the rest of the source to only expire cache on module changes:
COPY go.mod go.sum ./
RUN go mod download

COPY Makefile ./
RUN make plugins && make debug-script

COPY . ./
RUN make plugins && make debug-script
RUN make build-aws-vpc-cni-init

# Build from EKS minimal base + glibc by default
Expand Down
4 changes: 0 additions & 4 deletions scripts/dockerfiles/Dockerfile.metrics
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ WORKDIR /go/src/github.com/aws/amazon-vpc-cni-k8s
ENV GO111MODULE=on
ENV GOPROXY=direct

# Copy modules in before the rest of the source to only expire cache on module changes:
COPY go.mod go.sum ./
RUN go mod download

COPY . ./
RUN make build-metrics

Expand Down
5 changes: 0 additions & 5 deletions scripts/dockerfiles/Dockerfile.release
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ ARG TARGETARCH
ENV GO111MODULE=on
ENV GOPROXY=direct

# Copy modules in before the rest of the source to only expire cache on module changes:
COPY go.mod go.sum ./
RUN go mod download

COPY Makefile ./
COPY . ./
RUN make build-aws-vpc-cni && make build-linux

Expand Down

0 comments on commit 1a4bf1f

Please sign in to comment.