docker
docker copied to clipboard
Module "social_push_notifications" needs firebase_admin python library
The firebase_admin python library is not installed in the odoo docker image. Therefore the module social_push_notifications cannot be installed. I got following error message:
Unable to install module "social_push_notifications" because an external dependency is not met: Python library not installed: firebase_admin
As a workaround I'm wrapping the odoo docker image with a custom one that installs firebase_admin:
FROM odoo:14
USER root
RUN DEBIAN_FRONTEND=noninteractive && \
apt-get update --fix-missing && \
apt-get install -y g++ python3-dev python3-wheel && \
pip3 install firebase-admin && \
apt-get remove -y g++ python3-dev python3-wheel && \
apt-get autoremove -y && \
rm -rf /var/cache/apt/archives && \
rm -rf /var/cache/apt/lists && \
rm -rf /var/lib/apt/lists && \
apt-get clean
USER odoo