[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.
This commit is contained in:
Aaron Bohy 2015-10-08 10:59:38 +02:00
parent dbce067bb4
commit fac64b785d

View File

@ -37,6 +37,8 @@ COPY ./openerp-server.conf /etc/odoo/
RUN chown odoo /etc/odoo/openerp-server.conf RUN chown odoo /etc/odoo/openerp-server.conf
# Mount /var/lib/odoo to allow restoring filestore and /mnt/extra-addons for users addons # 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"] VOLUME ["/var/lib/odoo", "/mnt/extra-addons"]
# Expose Odoo services # Expose Odoo services