diff --git a/14.0/Dockerfile b/14.0/Dockerfile index cd2a9b0..46a7fff 100644 --- a/14.0/Dockerfile +++ b/14.0/Dockerfile @@ -18,9 +18,13 @@ COPY bin/* /usr/local/bin/ COPY install/* /install/ # pre-fetch the git-autoshare cache with the bare minimum: +# (yes we could divide the size of this image by 2 if we force the OCB base branch) ADD https://api.github.com/repos/odoo/odoo/git/refs/heads/14.0 version.json RUN mkdir -p /root/.cache/git-autoshare/github.com/odoo && \ cd /root/.cache/git-autoshare/github.com/odoo && \ /usr/bin/git init --bare && \ - /usr/bin/git fetch https://github.com/OCA/OCB.git refs/heads/14.0:refs/git-autoshare/oca/heads/14.0 --shallow-since=2020-10-01 && \ - /usr/bin/git fetch https://github.com/odoo/odoo.git refs/heads/14.0:refs/git-autoshare/odoo/heads/14.0 --shallow-since=2020-10-01 + /usr/bin/git fetch https://github.com/odoo/odoo.git refs/heads/14.0:refs/git-autoshare/odoo/heads/14.0 --shallow-since=2020-10-01 && \ + mkdir -p /root/.cache/git-autoshare/github.com/ocb && \ + cd /root/.cache/git-autoshare/github.com/ocb && \ + /usr/bin/git init --bare && \ + /usr/bin/git fetch https://github.com/OCA/OCB.git refs/heads/14.0:refs/git-autoshare/oca/heads/14.0 --shallow-since=2020-10-01