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/12 14:41:02 UTC
(superset) 07/17: fix(docker): Docker python-translation-build (#32163)
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 cbebac94045c7f5576bf19570b262e1f7b519005
Author: EmmanuelCbd <10...@users.noreply.github.com>
AuthorDate: Thu Feb 6 21:49:36 2025 +0100
fix(docker): Docker python-translation-build (#32163)
(cherry picked from commit 5a8488af36b0134793525a239069f31853585f76)
---
Dockerfile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/Dockerfile b/Dockerfile
index aa83fc8f1c..acfba0dce5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -23,11 +23,14 @@ ARG PY_VER=3.11-slim-bookworm
# If BUILDPLATFORM is null, set it to 'amd64' (or leave as is otherwise).
ARG BUILDPLATFORM=${BUILDPLATFORM:-amd64}
+# Include translations in the final build
+ARG BUILD_TRANSLATIONS="false"
+
######################################################################
# superset-node-ci used as a base for building frontend assets and CI
######################################################################
FROM --platform=${BUILDPLATFORM} node:20-bullseye-slim AS superset-node-ci
-ARG BUILD_TRANSLATIONS="false" # Include translations in the final build
+ARG BUILD_TRANSLATIONS
ENV BUILD_TRANSLATIONS=${BUILD_TRANSLATIONS}
ARG DEV_MODE="false" # Skip frontend build in dev mode
ENV DEV_MODE=${DEV_MODE}
@@ -122,6 +125,9 @@ ENV PATH="/app/.venv/bin:${PATH}"
######################################################################
FROM python-base AS python-translation-compiler
+ARG BUILD_TRANSLATIONS
+ENV BUILD_TRANSLATIONS=${BUILD_TRANSLATIONS}
+
# Install Python dependencies using docker/pip-install.sh
COPY requirements/translations.txt requirements/
RUN --mount=type=cache,target=/root/.cache/uv \