We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e30273 commit 859d764Copy full SHA for 859d764
Dockerfile
@@ -2,14 +2,17 @@
2
FROM golang:1.15 as builder
3
4
WORKDIR /workspace
5
+
6
+# Dependencies are cached unless we change go.mod or go.sum
7
+COPY go.mod go.mod
8
+COPY go.sum go.sum
9
+RUN go mod download
10
11
# Copy the go source
12
COPY main.go main.go
13
COPY api/ api/
14
COPY controllers/ controllers/
15
COPY internal/ internal/
-# Copy the Go Modules manifests
-COPY go.mod go.mod
-COPY go.sum go.sum
16
17
# Build
18
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -tags timetzdata -o manager main.go
0 commit comments