We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5693418 commit c5f94e1Copy full SHA for c5f94e1
Dockerfile
@@ -6,18 +6,8 @@ FROM --platform=${BUILDPLATFORM} ${BUILDER_IMAGE} AS builder
6
ARG TARGETARCH
7
8
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/
20
+COPY . .
21
# Build
22
# the GOARCH has not a default value to allow the binary be built according to the host where the command
23
# was called. For example, if we call make docker-build in a local env which has the Apple Silicon M1 SO
0 commit comments