[FIX]Odoo image 8072 port and VOLUME permission after USER
This commit is contained in:
parent
b53b544e54
commit
bf5e2e215c
@ -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 -U pip
|
||||||
RUN pip install -r OCB/requirements.txt --cache-dir pipcache
|
RUN pip install -r OCB/requirements.txt --cache-dir pipcache
|
||||||
|
|
||||||
|
# Launch scripts
|
||||||
|
COPY ./launch.sh ./
|
||||||
|
COPY ./genconf.sh ./
|
||||||
|
|
||||||
# Post-install tasks
|
# Post-install tasks
|
||||||
RUN touch odoo.conf
|
RUN touch odoo.conf
|
||||||
RUN chown -R odoo .
|
RUN chown -R odoo .
|
||||||
|
|
||||||
# Volumes : data dir for filestore and addons
|
|
||||||
VOLUME "/opt/odoo/data"
|
|
||||||
|
|
||||||
# Odoo default ports
|
# Odoo default ports
|
||||||
EXPOSE 8069 8071
|
EXPOSE 8069 8072
|
||||||
|
|
||||||
COPY ./launch.sh ./
|
|
||||||
COPY ./genconf.sh ./
|
|
||||||
# Default user : odoo
|
# Default user : odoo
|
||||||
USER odoo
|
USER odoo
|
||||||
|
|
||||||
|
# Volumes : data dir for filestore and addons
|
||||||
|
VOLUME /opt/odoo/data
|
||||||
|
|
||||||
CMD [ "bash", "launch.sh" ]
|
CMD [ "bash", "launch.sh" ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user