Parallelise Dockerfile stages and enable CI layer caching

Split runtime apt-get into a separate stage so BuildKit runs it
concurrently with the builder's apt-get + pip install. Add cache_from
to the Drone CI API build step to reuse layers from the previous image.
This commit is contained in:
Viktor Barzin 2026-02-07 11:06:35 +00:00
parent 3ef2df63b9
commit 7e05b3c971
No known key found for this signature in database
GPG key ID: 0EB088298288D958
2 changed files with 7 additions and 4 deletions

View file

@ -58,6 +58,7 @@ steps:
dockerfile: crawler/Dockerfile
context: crawler/
auto_tag: true
cache_from: viktorbarzin/realestatecrawler:latest
- name: Update deployment
image: alpine