Fix Docker image bloat: exclude local venvs from build context, move transformers.js to devDependencies.

This commit is contained in:
Lucas Winther
2026-07-29 08:25:00 +02:00
parent 214a9ef714
commit 99b1732003
6 changed files with 141 additions and 13 deletions
+11
View File
@@ -15,6 +15,17 @@ docker-compose.yml
__pycache__/
*.pyc
# Local Python virtualenvs for developing/testing the sidecar against a real
# faster-whisper install (e.g. server-py/venv, server-py/.venv). A nested
# venv/.gitignore keeps these out of `git status`, but Docker does not read
# .gitignore, so without this they silently ride along in `COPY server-py
# ./server-py` — confirmed to balloon the "Bun-only" image from the documented
# ~244 MB to 2.18 GB and bake a machine-specific interpreter path nothing in
# the container would ever use (the with-server-engine target builds its own
# venv from requirements.txt at /opt/faster-whisper).
**/venv/
**/.venv/
# Editor / agent state
.idea
.claude