From 9094423ba8f3a801b35be7bf3cfe632998283b90 Mon Sep 17 00:00:00 2001 From: Matt Dawkins Date: Tue, 27 Jan 2026 11:04:38 -0500 Subject: [PATCH] fix: use venv python directly in Dockerfile CMD MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous CMD used JSON exec form with shell builtins (. for source, &&) which does not work — exec form does not invoke a shell so these are passed as literal arguments. Since pip installed packages into /venv, we can invoke /venv/bin/python directly without needing to activate the virtual environment. Co-Authored-By: Claude Opus 4.5 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7e57c27..17f9ffb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,4 +38,4 @@ RUN /venv/bin/pip install --no-cache-dir -r requirements/runtime.txt \ # /venv/bin/pip install --no-cache-dir onnxruntime-gpu \ # ; fi -CMD [".", "/venv/bin/activate", "&&", "exec", "python", "app.py"] +CMD ["/venv/bin/python", "app.py"]