Skip to content

Commit

Permalink
Mark /var/lib/odoo as volume after rigths are set
Browse files Browse the repository at this point in the history
  • Loading branch information
llacroix committed Jan 25, 2022
1 parent fa1639c commit 583d865
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ RUN set -x; \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /root/.cache

VOLUME /etc/odoo
VOLUME /var/lib/odoo

COPY ./%(config)s /etc/odoo/
COPY ./%(entrypoint)s /
COPY ./sudo-%(entrypoint)s /
Expand All @@ -98,6 +95,9 @@ RUN mkdir /addons \
&& chown -R odoo:odoo /addons \
&& echo "odoo ALL=(ALL:ALL) NOPASSWD:SETENV: /sudo-entrypoint.py" >> /etc/sudoers

VOLUME /etc/odoo
VOLUME /var/lib/odoo

ENV ODOO_RC /etc/odoo/odoo.conf
ENV ODOO_BASE_PATH /usr/local/lib/%(python_version)s/dist-packages/odoo/addons
# Env variable defined to monitor the kind of service running
Expand Down

0 comments on commit 583d865

Please sign in to comment.