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" ]