From bf5e2e215c2739c0fc1b6b0f059ea8a8b23732fd Mon Sep 17 00:00:00 2001 From: Fabien Bourgeois Date: Tue, 4 Oct 2016 00:30:30 +0200 Subject: [PATCH] [FIX]Odoo image 8072 port and VOLUME permission after USER --- odoo/odoo/Dockerfile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/odoo/odoo/Dockerfile b/odoo/odoo/Dockerfile index a14ad9c..d7938a3 100644 --- a/odoo/odoo/Dockerfile +++ b/odoo/odoo/Dockerfile @@ -45,18 +45,21 @@ RUN git clone -b ${ODOO_BRANCH} --depth 1 https://github.com/OCA/OCB.git RUN pip install -U pip RUN pip install -r OCB/requirements.txt --cache-dir pipcache +# Launch scripts +COPY ./launch.sh ./ +COPY ./genconf.sh ./ + # Post-install tasks RUN touch odoo.conf RUN chown -R odoo . -# Volumes : data dir for filestore and addons -VOLUME "/opt/odoo/data" - # Odoo default ports -EXPOSE 8069 8071 +EXPOSE 8069 8072 -COPY ./launch.sh ./ -COPY ./genconf.sh ./ # Default user : odoo USER odoo + +# Volumes : data dir for filestore and addons +VOLUME /opt/odoo/data + CMD [ "bash", "launch.sh" ]