From 5c0ba37eda80d39e6ceca59bb1d5f4942f858995 Mon Sep 17 00:00:00 2001 From: "Somhairle H. Marisol" Date: Thu, 17 Sep 2026 14:32:37 +0800 Subject: chore: establish Strategy Lab source baseline (development, not release) --- .dockerignore | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .dockerignore (limited to '.dockerignore') diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..ca3cd38 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,27 @@ +# Docker context guard for the worker image build +# (`docker build -f worker/Dockerfile -t strategy-lab-worker:local .` from the +# project root). The Dockerfile only COPYs requirements-worker.txt and worker/, +# so everything else stays out of the build context. Rationale: a full-context +# build previously pushed ~2.5 GB into the builder, including private QA +# evidence artifacts/, server sources, docs and caches that must never enter +# an image layer derived context. +# +# Whitelist semantics (moby patternmatcher, last matching pattern wins): +# `**/*` excludes every path (including dot entries; `**` also matches zero +# directories), and the negations re-include exactly what worker/Dockerfile +# COPYs: requirements-worker.txt and the worker/ tree. + +**/* +!requirements-worker.txt +!worker +!worker/** + +# never ship caches inside the worker tree even if created locally +worker/__pycache__ +worker/**/__pycache__ +worker/*.pyc +worker/**/*.pyc +worker/.pytest_cache +worker/**/.pytest_cache +worker/.venv +worker/**/.venv -- cgit v1.2.3