diff --git a/Makefile b/Makefile index de17b5d6..de99fe85 100644 --- a/Makefile +++ b/Makefile @@ -65,7 +65,7 @@ dbt_docs.serve: ## serve the dbt-docs documentation @docker compose -f $(app_compose_file) --env-file $(app_compose_env_file) up dbt-docs dbt_docs.build-image: ## build the dbt-docs image - @docker compose -f $(app_compose_file) --env-file $(app_compose_env_file) build dbt-docs + @docker compose -f $(app_compose_file) --env-file $(app_compose_env_file) build dbt-docs --progress plain dbt_docs.push-image: ## push the dbt-docs image with tag: latest @docker compose -f $(app_compose_file) --env-file $(app_compose_env_file) push dbt-docs diff --git a/containers/app/Dockerfile b/containers/app/Dockerfile index 94a5c6aa..839cfa2a 100644 --- a/containers/app/Dockerfile +++ b/containers/app/Dockerfile @@ -155,7 +155,7 @@ COPY ./${DBT_PROJECT_DIR}/config/profiles.yml /home/${USERNAME}/.dbt/profiles.ym # install deps RUN mkdir -p ${WORKDIR}/${DBT_PROJECT_DIR}/ -COPY ./${DBT_PROJECT_DIR}/dbt_project.yml ${WORKDIR}/${DBT_PROJECT_DIR}/ +COPY ./${DBT_PROJECT_DIR}/dbt_project.yml ./${DBT_PROJECT_DIR}/packages.yml ${WORKDIR}/${DBT_PROJECT_DIR}/ RUN dbt deps --project-dir ${WORKDIR}/${DBT_PROJECT_DIR}/ --profiles-dir /home/${USERNAME}/.dbt ENTRYPOINT [ "python" ] CMD [ "--version" ] @@ -194,7 +194,7 @@ COPY ./${DBT_PROJECT_DIR}/config/profiles.yml /home/${USERNAME}/.dbt/profiles.ym # install dbt dependencies RUN mkdir -p ${WORKDIR}/${DBT_PROJECT_DIR}/ -COPY ./${DBT_PROJECT_DIR}/dbt_project.yml ${WORKDIR}/${DBT_PROJECT_DIR}/ +COPY ./${DBT_PROJECT_DIR}/dbt_project.yml ./${DBT_PROJECT_DIR}/packages.yml ${WORKDIR}/${DBT_PROJECT_DIR}/ RUN dbt deps --project-dir ${WORKDIR}/${DBT_PROJECT_DIR}/ --profiles-dir /home/${USERNAME}/.dbt @@ -252,7 +252,8 @@ COPY ./${DBT_PROJECT_DIR}/config/profiles.yml /home/${USERNAME}/.dbt/profiles.ym # install deps RUN mkdir -p ${WORKDIR}/${DBT_PROJECT_DIR}/ -COPY ./${DBT_PROJECT_DIR}/dbt_project.yml ${WORKDIR}/${DBT_PROJECT_DIR}/ + +COPY ./${DBT_PROJECT_DIR}/dbt_project.yml ./${DBT_PROJECT_DIR}/packages.yml ${WORKDIR}/${DBT_PROJECT_DIR}/ RUN dbt deps --project-dir ${WORKDIR}/${DBT_PROJECT_DIR}/ --profiles-dir /home/${USERNAME}/.dbt EXPOSE 80