You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the existing issues, and I could not find an existing issue for this feature
I am requesting a straightforward extension of existing dbt-bigquery functionality, rather than a Big Idea better suited to a discussion
Describe the feature
The dbt-bigquery Docker image is currently on python:3.11.2-bullseye. I suggest an upgrade to python:3.12.8-slim-bookworm given that you already support python 3.12.8 and Debian Bulleye will go into LTS in August 2025 [1].
While having removed the version pinning of some libraries, here is an updated Dockerfile, that also reduces image size by utilizing multi stage builds a little bit differently than in the existing Dockerfile.
ARG py_version=3.12.8
FROM python:$py_version-slim-bookworm AS build
RUN apt-get update \
&& apt-get dist-upgrade -y \
&& apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
git \
libpq-dev \
make \
openssh-client \
software-properties-common \
&& apt-get clean \
&& rm -rf \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/*
ENV PYTHONIOENCODING=utf-8
ENV LANG=C.UTF-8
RUN python -m pip install --upgrade pip setuptools wheel --no-cache-dir
WORKDIR /usr/app/dbt/
ARG commit_ref=main
RUN python -m pip install --no-cache-dir "dbt-bigquery @ git+https://github.com/dbt-labs/dbt-bigquery@${commit_ref}"# Final lightweight production imageFROM python:$py_version-slim-bookworm AS production
COPY --from=build /usr/local /usr/local
# Healthcheck and entrypointHEALTHCHECK CMD dbt --version || exit 1
WORKDIR /usr/app/dbt/
ENTRYPOINT ["dbt"]
Who will this benefit?
Smaller image size can help reduce overhead for deployments. The later Python and Debian versions in addition to removing the version pinning help to reduce the number of vulnerabilities reported by trivy image --report summary --scanners vuln --severity HIGH,CRITICAL. I do understand version pinning to be important for stability.
Are you interested in contributing this feature?
Yes
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Is this your first time submitting a feature request?
Describe the feature
The dbt-bigquery Docker image is currently on
python:3.11.2-bullseye
. I suggest an upgrade topython:3.12.8-slim-bookworm
given that you already support python 3.12.8 and Debian Bulleye will go into LTS in August 2025 [1].[1] https://www.debian.org/releases/
Describe alternatives you've considered
While having removed the version pinning of some libraries, here is an updated Dockerfile, that also reduces image size by utilizing multi stage builds a little bit differently than in the existing Dockerfile.
Who will this benefit?
Smaller image size can help reduce overhead for deployments. The later Python and Debian versions in addition to removing the version pinning help to reduce the number of vulnerabilities reported by
trivy image --report summary --scanners vuln --severity HIGH,CRITICAL
. I do understand version pinning to be important for stability.Are you interested in contributing this feature?
Yes
Anything else?
No response
The text was updated successfully, but these errors were encountered: