[FIX]Odoo image 8072 port and VOLUME permission after USER

This commit is contained in:
Fabien Bourgeois 2016-10-04 00:30:30 +02:00
parent b53b544e54
commit bf5e2e215c

View File

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