From f3ee899c0d847c35309fddcf59b1037953c4116b Mon Sep 17 00:00:00 2001 From: Valerian Pereira Date: Sat, 26 May 2018 23:58:14 +0530 Subject: [PATCH] Docker File updated Adds to Improvement to the docker image size. --- 10.0/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/10.0/Dockerfile b/10.0/Dockerfile index a3e32e1..f730948 100644 --- a/10.0/Dockerfile +++ b/10.0/Dockerfile @@ -35,10 +35,10 @@ RUN set -x; \ # Copy entrypoint script and Odoo configuration file COPY ./entrypoint.sh / COPY ./odoo.conf /etc/odoo/ -RUN chown odoo /etc/odoo/odoo.conf -# Mount /var/lib/odoo to allow restoring filestore and /mnt/extra-addons for users addons -RUN mkdir -p /mnt/extra-addons \ +# Set Permission && Mount /var/lib/odoo to allow restoring filestore and /mnt/extra-addons for users addons +RUN chown odoo /etc/odoo/odoo.conf \ + && mkdir -p /mnt/extra-addons \ && chown -R odoo /mnt/extra-addons VOLUME ["/var/lib/odoo", "/mnt/extra-addons"]