Skip to content

Commit

Permalink
remove go mod download from dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
jdn5126 committed May 12, 2023
1 parent fb72ec0 commit c817f50
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 c817f50

Please sign in to comment.