Skip to content

Commit

Permalink
chore: remove redundant steps in docker build
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Salas <carlos.salas@suse.com>
  • Loading branch information
salasberryfin committed Oct 25, 2024
1 parent 048e7fb commit 49e57a8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ 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 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 ./ ./

Expand Down

0 comments on commit 49e57a8

Please sign in to comment.