From bb3f142303b5b4b3c946e05424179f8cb05baadf Mon Sep 17 00:00:00 2001 From: Rob Nester Date: Mon, 15 Dec 2025 09:05:28 -0500 Subject: [PATCH] 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 --- .dockerignore | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 000000000..0ee54b105 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,36 @@ +# Copyright The Conforma Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + +# Exclude pre-built binaries to prevent copying host's dist/ into the build stage. +# This is critical for multi-arch builds where each architecture should only have +# its own built binaries, not all binaries from the host. +dist/ + +# Exclude coverage output files +*.out + +# Exclude node modules (used for tekton-lint) +node_modules/ + +# Exclude IDE and editor files +.idea/ +.vscode/ +*.swp +*.swo + +# Exclude test artifacts +acceptance/testenv/ +