Skip to content

Commit bb3f142

Browse files
committed
add .dockerignore file
This commit adds a `.dockerignore` which ignores the `dist/` directory when executing the `COPY . .` command in the `Dockerfile` and `Dockerfile.dist` file when building images. The expectation is that this will resolve the disk usage issues we're seeing. Ref: EC-1585 Signed-off-by: Rob Nester <[email protected]>
1 parent 6498df4 commit bb3f142

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.dockerignore

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Copyright The Conforma Contributors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
# SPDX-License-Identifier: Apache-2.0
16+
17+
# Exclude pre-built binaries to prevent copying host's dist/ into the build stage.
18+
# This is critical for multi-arch builds where each architecture should only have
19+
# its own built binaries, not all binaries from the host.
20+
dist/
21+
22+
# Exclude coverage output files
23+
*.out
24+
25+
# Exclude node modules (used for tekton-lint)
26+
node_modules/
27+
28+
# Exclude IDE and editor files
29+
.idea/
30+
.vscode/
31+
*.swp
32+
*.swo
33+
34+
# Exclude test artifacts
35+
acceptance/testenv/
36+

0 commit comments

Comments
 (0)