1- FROM node:20-bookworm AS frontend-builder
1+ FROM node:20-trixie AS frontend-builder
22
33RUN npm install --global --force
[email protected] 44
@@ -19,7 +19,6 @@ COPY --chown=redash scripts /frontend/scripts
1919# Controls whether to instrument code for coverage information
2020ARG code_coverage
2121ENV BABEL_ENV=${code_coverage:+test}
22- ENV GITHUB_PAT=${GITHUB_PAT}
2322
2423# Avoid issues caused by lags in disk and network I/O speeds when working on top of QEMU emulation for multi-platform image building.
2524RUN yarn config set network-timeout 300000
@@ -38,12 +37,15 @@ RUN <<EOF
3837 fi
3938EOF
4039
41- FROM python:3.11-slim-bookworm
40+ FROM python:3.11-slim-trixie
4241
4342EXPOSE 5000
4443
4544RUN useradd --create-home redash
4645
46+ # Add Debian trixie-proposed-updates repository
47+ RUN echo "deb http://deb.debian.org/debian trixie-proposed-updates main" > /etc/apt/sources.list.d/trixie-proposed-updates.list
48+
4749# Ubuntu packages
4850RUN apt-get update && \
4951 apt-get install -y --no-install-recommends \
@@ -75,11 +77,11 @@ RUN apt-get update && \
7577
7678
7779ARG TARGETPLATFORM
78- ARG databricks_odbc_driver_url=https://databricks-bi-artifacts.s3.us-east-2.amazonaws.com/simbaspark-drivers/odbc/2.6.26 /SimbaSparkODBC-2.6.26.1045 -Debian-64bit.zip
80+ ARG databricks_odbc_driver_url=https://databricks-bi-artifacts.s3.us-east-2.amazonaws.com/simbaspark-drivers/odbc/2.9.2 /SimbaSparkODBC-2.9.2.1008 -Debian-64bit.zip
7981RUN <<EOF
8082 if [ "$TARGETPLATFORM" = "linux/amd64" ]; then
8183 curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o /usr/share/keyrings/microsoft-prod.gpg
82- curl https://packages.microsoft.com/config/debian/12 /prod.list > /etc/apt/sources.list.d/mssql-release.list
84+ curl https://packages.microsoft.com/config/debian/13 /prod.list > /etc/apt/sources.list.d/mssql-release.list
8385 apt-get update
8486 ACCEPT_EULA=Y apt-get install -y --no-install-recommends msodbcsql18
8587 apt-get clean
@@ -110,7 +112,9 @@ ARG POETRY_OPTIONS="--no-root --no-ansi --no-interaction"
110112# disabled by default due to GPL license conflict
111113ARG install_groups="main,all_ds,dev"
112114RUN --mount=type=cache,target=/root/.cache/pypoetry \
113- /etc/poetry/bin/poetry install --only $install_groups $POETRY_OPTIONS
115+ /etc/poetry/bin/poetry install --only $install_groups $POETRY_OPTIONS && \
116+ /etc/poetry/bin/poetry add "setuptools@latest"
117+ RUN rm -rf /etc/poetry/venv/lib/python3.11/site-packages/setuptools-65.5.0.dist-info/
114118
115119COPY --chown=redash . /app
116120COPY --from=frontend-builder --chown=redash /frontend/client/dist /app/client/dist
0 commit comments