fix(docker): Docker python-translation-build (#32163)
This commit is contained in:
parent
205cff3a94
commit
5a8488af36
|
|
@ -23,11 +23,14 @@ ARG PY_VER=3.11-slim-bookworm
|
||||||
# If BUILDPLATFORM is null, set it to 'amd64' (or leave as is otherwise).
|
# If BUILDPLATFORM is null, set it to 'amd64' (or leave as is otherwise).
|
||||||
ARG BUILDPLATFORM=${BUILDPLATFORM:-amd64}
|
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
|
# superset-node-ci used as a base for building frontend assets and CI
|
||||||
######################################################################
|
######################################################################
|
||||||
FROM --platform=${BUILDPLATFORM} node:20-bullseye-slim AS superset-node-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}
|
ENV BUILD_TRANSLATIONS=${BUILD_TRANSLATIONS}
|
||||||
ARG DEV_MODE="false" # Skip frontend build in dev mode
|
ARG DEV_MODE="false" # Skip frontend build in dev mode
|
||||||
ENV DEV_MODE=${DEV_MODE}
|
ENV DEV_MODE=${DEV_MODE}
|
||||||
|
|
@ -122,6 +125,9 @@ ENV PATH="/app/.venv/bin:${PATH}"
|
||||||
######################################################################
|
######################################################################
|
||||||
FROM python-base AS python-translation-compiler
|
FROM python-base AS python-translation-compiler
|
||||||
|
|
||||||
|
ARG BUILD_TRANSLATIONS
|
||||||
|
ENV BUILD_TRANSLATIONS=${BUILD_TRANSLATIONS}
|
||||||
|
|
||||||
# Install Python dependencies using docker/pip-install.sh
|
# Install Python dependencies using docker/pip-install.sh
|
||||||
COPY requirements/translations.txt requirements/
|
COPY requirements/translations.txt requirements/
|
||||||
RUN --mount=type=cache,target=/root/.cache/uv \
|
RUN --mount=type=cache,target=/root/.cache/uv \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue