Skip to content

Commit

Permalink
Speed dev: fetch proj deps only on bb.edn change
Browse files Browse the repository at this point in the history
  • Loading branch information
ccfontes committed Nov 7, 2023
1 parent c64bbd7 commit 79cf2bc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions template/bb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 79cf2bc

Please sign in to comment.