Skip to content

Commit 8c17439

Browse files
committed
fix: enforce venv activation in docker command
1 parent 656108f commit 8c17439

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder/engines/generic_container.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def build_image(self) -> str | None | CompletedProcess:
178178

179179
@property
180180
def get_container_cmd(self) -> str:
181-
return '{} run {} {} /bin/bash -c "{}"'.format(
181+
return '{} run {} {} /bin/bash -c "source .venv/bin/activate && {}"'.format(
182182
self.benv,
183183
" ".join(self.container_options),
184184
self._name_image,

0 commit comments

Comments
 (0)