remove redundant steps in docker build

Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
This commit is contained in:
Furkat Gofurov 2024-10-25 12:26:04 +03:00
parent 717ab55b18
commit e200841da8
No known key found for this signature in database
1 changed files with 0 additions and 9 deletions

View File

@ -16,15 +16,6 @@ ARG goproxy=https://proxy.golang.org
# Run this with docker build --build-arg package=./controlplane or --build-arg package=./bootstrap
ENV GOPROXY=$goproxy
# Copy the Go Modules manifests
COPY go.mod go.mod
COPY go.sum go.sum
# Cache deps before building and copying source so that we don't need to re-download as much
# and so that source changes don't invalidate our downloaded layer
RUN --mount=type=cache,target=/go/pkg/mod \
go mod download
# Copy the sources
COPY ./ ./