[IMP] Odoo 11.0-13.0: remove a RUN layer
Small improvement to minimze the number of layers. Thanks to @valerianpereira for the PR. Closes #188
This commit is contained in:
parent
6011cc7931
commit
0c835c7485
@ -63,11 +63,11 @@ RUN set -x; \
|
|||||||
# Copy entrypoint script and Odoo configuration file
|
# Copy entrypoint script and Odoo configuration file
|
||||||
COPY ./entrypoint.sh /
|
COPY ./entrypoint.sh /
|
||||||
COPY ./odoo.conf /etc/odoo/
|
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
|
# Mount /var/lib/odoo to allow restoring filestore and /mnt/extra-addons for users addons
|
||||||
RUN mkdir -p /mnt/extra-addons \
|
RUN chown odoo /etc/odoo/odoo.conf \
|
||||||
&& chown -R odoo /mnt/extra-addons
|
&& mkdir -p /mnt/extra-addons \
|
||||||
|
&& chown -R odoo /mnt/extra-addons
|
||||||
VOLUME ["/var/lib/odoo", "/mnt/extra-addons"]
|
VOLUME ["/var/lib/odoo", "/mnt/extra-addons"]
|
||||||
|
|
||||||
# Expose Odoo services
|
# Expose Odoo services
|
||||||
|
@ -77,11 +77,11 @@ RUN set -x; \
|
|||||||
# Copy entrypoint script and Odoo configuration file
|
# Copy entrypoint script and Odoo configuration file
|
||||||
COPY ./entrypoint.sh /
|
COPY ./entrypoint.sh /
|
||||||
COPY ./odoo.conf /etc/odoo/
|
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
|
# Mount /var/lib/odoo to allow restoring filestore and /mnt/extra-addons for users addons
|
||||||
RUN mkdir -p /mnt/extra-addons \
|
RUN chown odoo /etc/odoo/odoo.conf \
|
||||||
&& chown -R odoo /mnt/extra-addons
|
&& mkdir -p /mnt/extra-addons \
|
||||||
|
&& chown -R odoo /mnt/extra-addons
|
||||||
VOLUME ["/var/lib/odoo", "/mnt/extra-addons"]
|
VOLUME ["/var/lib/odoo", "/mnt/extra-addons"]
|
||||||
|
|
||||||
# Expose Odoo services
|
# Expose Odoo services
|
||||||
|
@ -65,11 +65,11 @@ RUN set -x; \
|
|||||||
# Copy entrypoint script and Odoo configuration file
|
# Copy entrypoint script and Odoo configuration file
|
||||||
COPY ./entrypoint.sh /
|
COPY ./entrypoint.sh /
|
||||||
COPY ./odoo.conf /etc/odoo/
|
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
|
# Set permissions and Mount /var/lib/odoo to allow restoring filestore and /mnt/extra-addons for users addons
|
||||||
RUN mkdir -p /mnt/extra-addons \
|
RUN chown odoo /etc/odoo/odoo.conf \
|
||||||
&& chown -R odoo /mnt/extra-addons
|
&& mkdir -p /mnt/extra-addons \
|
||||||
|
&& chown -R odoo /mnt/extra-addons
|
||||||
VOLUME ["/var/lib/odoo", "/mnt/extra-addons"]
|
VOLUME ["/var/lib/odoo", "/mnt/extra-addons"]
|
||||||
|
|
||||||
# Expose Odoo services
|
# Expose Odoo services
|
||||||
|
Loading…
Reference in New Issue
Block a user