Skip to content

Commit c5f94e1

Browse files
authored
copy all files in project rather than piece by piece (kubernetes-sigs#765)
1 parent 5693418 commit c5f94e1

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

Dockerfile

+1-11
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,8 @@ FROM --platform=${BUILDPLATFORM} ${BUILDER_IMAGE} AS builder
66
ARG TARGETARCH
77

88
WORKDIR /workspace
9-
# Copy the Go Modules manifests
10-
COPY go.mod go.mod
11-
COPY go.sum go.sum
12-
# cache deps before building and copying source so that we don't need to re-download as much
13-
# and so that source changes don't invalidate our downloaded layer
14-
RUN go mod download
15-
16-
# Copy the go source
17-
COPY main.go main.go
18-
COPY api/ api/
19-
COPY pkg/ pkg/
209

10+
COPY . .
2111
# Build
2212
# the GOARCH has not a default value to allow the binary be built according to the host where the command
2313
# was called. For example, if we call make docker-build in a local env which has the Apple Silicon M1 SO

0 commit comments

Comments
 (0)