Add initial Odoo FSM modules and deployment make targets
This commit is contained in:
@@ -84,6 +84,13 @@ RUN mkdir -p /var/lib/odoo /mnt/extra-addons \
|
||||
&& chown -R odoo:odoo /var/lib/odoo /mnt/extra-addons \
|
||||
&& chmod -R u+w /var/lib/odoo
|
||||
|
||||
# Make custom addons available in the image
|
||||
COPY ./odoo/addons /mnt/extra-addons
|
||||
RUN chown -R odoo:odoo /mnt/extra-addons \
|
||||
&& if grep -q '^addons_path' /etc/odoo/odoo.conf; then \
|
||||
sed -i 's|^addons_path *= *|addons_path = /mnt/extra-addons,|' /etc/odoo/odoo.conf; \
|
||||
fi
|
||||
|
||||
# Build self-contained entrypoint in image (no external files required)
|
||||
RUN printf '%s\n' \
|
||||
'#!/usr/bin/env bash' \
|
||||
|
||||
Reference in New Issue
Block a user