From 79cf2bce64fb413396ad22cadfadda3e8b4bfea5 Mon Sep 17 00:00:00 2001 From: Carlos Fontes Date: Tue, 7 Nov 2023 01:47:21 +0000 Subject: [PATCH] Speed dev: fetch proj deps only on bb.edn change --- template/bb/Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/template/bb/Dockerfile b/template/bb/Dockerfile index c3eefa1..77d7101 100644 --- a/template/bb/Dockerfile +++ b/template/bb/Dockerfile @@ -18,12 +18,14 @@ RUN addgroup --system app && adduser --system --ingroup app app && \ USER app WORKDIR $HOME -COPY --chown=app:app index.clj function/bb.edn ./ -COPY --chown=app:app lib ./ +COPY --chown=app:app function/bb.edn ./ +RUN bb prepare && bb print-deps + COPY --chown=app:app function function +RUN rm function/bb.edn -RUN rm function/bb.edn && \ - bb --deps-root function prepare && bb --deps-root function print-deps +COPY --chown=app:app index.clj ./ +COPY --chown=app:app lib ./ ENV mode="http" ENV upstream_url="http://127.0.0.1:8082"