From 5e2975ba6f8716fc199b14c9ab9c28d4ccdf5f6c Mon Sep 17 00:00:00 2001 From: Harshith <104987110+Harshithraj24@users.noreply.github.com> Date: Tue, 29 Sep 2026 22:42:45 +0530 Subject: [PATCH] perf(docker): add .dockerignore so the build context stops shipping .git --- .dockerignore | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000000..b8553d1ab5 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,50 @@ +# The build context is COPY'd wholesale by `COPY . .` in the Dockerfile, so +# anything not needed at runtime ends up in the image and is pulled onto every +# node. Keep this file in sync with what the Dockerfile actually needs: +# requirements.txt, sqlglotrs/ (built by maturin), and the runtime Python. + +# Version control. Jenkins checks out full history, which is by far the largest +# single item in the context. +.git +.gitignore +.gitpod.yml +.pre-commit-config.yaml + +# Generated documentation. +docs/ +pdoc/ + +# Blog posts, benchmarks and tests: not used at runtime. +posts/ +benchmarks/ +tests/ + +# CI / tooling config. +.github/ +Jenkinsfile +sonar-project.properties +Makefile +CONTRIBUTING.md +CHANGELOG.md + +# Images used by the README. +*.png +*.gif + +# Local scratch output. +output.txt + +# Python build and cache artifacts. +__pycache__/ +*.py[cod] +.pytest_cache/ +.mypy_cache/ +.ruff_cache/ +*.egg-info/ +build/ +dist/ +.venv/ +venv/ + +# Rust build output — sqlglotrs is compiled inside the image. +sqlglotrs/target/