Skip to content

Commit 2c92bc8

Browse files
authored
chore(docker): optimize docker build process (#1285)
Signed-off-by: Cheng Fang <[email protected]>
1 parent 39a37bf commit 2c92bc8

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
@@ -4,7 +4,7 @@ RUN mkdir -p /src/argocd-image-updater
44
WORKDIR /src/argocd-image-updater
55
# cache dependencies as a layer for faster rebuilds
66
COPY go.mod go.sum ./
7-
COPY registry-scanner ./
7+
COPY registry-scanner/go.mod registry-scanner/go.sum ./registry-scanner/
88
RUN go mod download
99
COPY . .
1010

0 commit comments

Comments
 (0)