From fac64b785d4bf8d6ef24f062700c109965f9b2f3 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Thu, 8 Oct 2015 10:59:38 +0200 Subject: [PATCH] [FIX] Dockerfile: let odoo user owner of /mnt/extra-addons This allows to directly create new addons in /mnt/extra-addons from inside the container, e.g. using odoo scaffolding. Closes #21. --- 8.0/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/8.0/Dockerfile b/8.0/Dockerfile index 7927b0b..95b44e2 100644 --- a/8.0/Dockerfile +++ b/8.0/Dockerfile @@ -37,6 +37,8 @@ COPY ./openerp-server.conf /etc/odoo/ RUN chown odoo /etc/odoo/openerp-server.conf # Mount /var/lib/odoo to allow restoring filestore and /mnt/extra-addons for users addons +RUN mkdir -p /mnt/extra-addons \ + && chown -R odoo /mnt/extra-addons VOLUME ["/var/lib/odoo", "/mnt/extra-addons"] # Expose Odoo services