You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by mi...@apache.org on 2025/02/04 14:50:41 UTC

(superset) 03/03: fix: No virtual environment when running Docker translation compiler (#32133)

This is an automated email from the ASF dual-hosted git repository.

michaelsmolina pushed a commit to branch 5.0
in repository https://gitbox.apache.org/repos/asf/superset.git

commit b80aa864a1cce446cdaf9b3006639fefd79a11c4
Author: Michael S. Molina <70...@users.noreply.github.com>
AuthorDate: Tue Feb 4 10:43:25 2025 -0300

    fix: No virtual environment when running Docker translation compiler (#32133)
    
    (cherry picked from commit 53d944d0130da23b4f0d02e35c4e204c813ce314)
---
 Dockerfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index e3577c6731..aa83fc8f1c 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -125,7 +125,7 @@ FROM python-base AS python-translation-compiler
 # Install Python dependencies using docker/pip-install.sh
 COPY requirements/translations.txt requirements/
 RUN --mount=type=cache,target=/root/.cache/uv \
-    /app/docker/pip-install.sh --requires-build-essential -r requirements/translations.txt
+    . /app/.venv/bin/activate && /app/docker/pip-install.sh --requires-build-essential -r requirements/translations.txt
 
 COPY superset/translations/ /app/translations_mo/
 RUN if [ "$BUILD_TRANSLATIONS" = "true" ]; then \