Skip to content

Commit 92d51e8

Browse files
authored
chore(crd): optimize docker build process (#1284)
Signed-off-by: dkarpele <[email protected]>
1 parent 321aef7 commit 92d51e8

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.dockerignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
1+
.github
12
.vscode/
23
.idea/
34
.DS_Store
5+
bin/
46
dist/
7+
**/docs/
8+
**/vendor/
9+
registry-scanner/config
10+
registry-scanner/hack
11+
registry-scanner/test
12+
scripts/
13+
test/e2e
14+
test/testdata
15+
test/utils
516
*.iml
617
# delve debug binaries
718
cmd/**/debug
819
debug.test
920
**/coverage.out
21+
**/CHANGELOG.md
22+
**/README.md

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ RUN mkdir -p /src/argocd-image-updater
77
WORKDIR /src/argocd-image-updater
88
# Copy the Go Modules manifests
99
COPY go.mod go.sum ./
10-
COPY registry-scanner ./
10+
COPY registry-scanner/go.mod registry-scanner/go.sum ./registry-scanner/
1111
# cache deps before building and copying source so that we don't need to re-download as much
1212
# and so that source changes don't invalidate our downloaded layer
1313
RUN go mod download

0 commit comments

Comments
 (0)