Skip to content

Commit

Permalink
fix: enforce venv activation in docker command
Browse files Browse the repository at this point in the history
  • Loading branch information
seppzer0 committed Jan 18, 2025
1 parent 656108f commit 8c17439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builder/engines/generic_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def build_image(self) -> str | None | CompletedProcess:

@property
def get_container_cmd(self) -> str:
return '{} run {} {} /bin/bash -c "{}"'.format(
return '{} run {} {} /bin/bash -c "source .venv/bin/activate && {}"'.format(
self.benv,
" ".join(self.container_options),
self._name_image,
Expand Down

0 comments on commit 8c17439

Please sign in to comment.