From 7f018e71abc954de2fcec0198bfefd0a105bcdb2 Mon Sep 17 00:00:00 2001 From: Ramiro Krapp Date: Wed, 16 Apr 2025 10:26:17 -0300 Subject: [PATCH] fix FromAsCasing build and separate long lines into multiple lines --- docker/Dockerfile | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 840e153fa93..bf395553134 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,10 +1,10 @@ ARG py_version=3.11.2 -FROM python:$py_version-slim-bullseye as base +FROM python:$py_version-slim-bullseye AS base RUN apt-get update \ - && apt-get dist-upgrade -y \ - && apt-get install -y --no-install-recommends \ + && apt-get dist-upgrade -y \ + && apt-get install -y --no-install-recommends \ build-essential=12.9 \ ca-certificates=20210119 \ git=1:2.30.2-1+deb11u2 \ @@ -12,8 +12,8 @@ RUN apt-get update \ make=4.3-4.1 \ openssh-client=1:8.4p1-5+deb11u3 \ software-properties-common=0.96.20.2-2.1 \ - && apt-get clean \ - && rm -rf \ + && apt-get clean \ + && rm -rf \ /var/lib/apt/lists/* \ /tmp/* \ /var/tmp/* @@ -24,7 +24,7 @@ ENV LANG=C.UTF-8 RUN python -m pip install --upgrade "pip==24.0" "setuptools==69.2.0" "wheel==0.43.0" --no-cache-dir -FROM base as dbt-core +FROM base AS dbt-core ARG commit_ref=main @@ -33,10 +33,11 @@ HEALTHCHECK CMD dbt --version || exit 1 WORKDIR /usr/app/dbt/ ENTRYPOINT ["dbt"] -RUN python -m pip install --no-cache-dir "dbt-core @ git+https://github.com/dbt-labs/dbt-core@${commit_ref}#subdirectory=core" +RUN python -m pip install --no-cache-dir \ + "dbt-core @ git+https://github.com/dbt-labs/dbt-core@${commit_ref}#subdirectory=core" -FROM base as dbt-postgres +FROM base AS dbt-postgres ARG commit_ref=main @@ -45,10 +46,11 @@ HEALTHCHECK CMD dbt --version || exit 1 WORKDIR /usr/app/dbt/ ENTRYPOINT ["dbt"] -RUN python -m pip install --no-cache-dir "dbt-postgres @ git+https://github.com/dbt-labs/dbt-core@${commit_ref}#subdirectory=plugins/postgres" +RUN python -m pip install --no-cache-dir \ + "dbt-postgres @ git+https://github.com/dbt-labs/dbt-core@${commit_ref}#subdirectory=plugins/postgres" -FROM dbt-core as dbt-third-party +FROM dbt-core AS dbt-third-party ARG dbt_third_party @@ -56,4 +58,4 @@ RUN if [ "$dbt_third_party" ]; then \ python -m pip install --no-cache-dir "${dbt_third_party}"; \ else \ echo "No third party adapter provided"; \ - fi \ + fi