Commit 7364fe3d authored by Ndoumbe's avatar Ndoumbe

Update Dockerfile

parent f8407dd7
FROM odoo:15 FROM odoo:15.0
USER root USER root
RUN apt update RUN apt update
### /install some development tools RUN apt install -y unoconv vim git watchdog locales locales-all
RUN apt install -y unoconv vim git ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE fr_FR.UTF-8
RUN pip install cachetools==3.1.1
RUN git clone https://github.com/keshrath/pdfconv.git \
&& chown -R odoo:odoo /pdfconv \
&& chmod a+wr -R /tmp
### Install some dependencies needed by ijayo modules WORKDIR /pdfconv/
# RUN pip install docxtpl
# RUN apt -y install libreoffice
# RUN pip install kafka-python
### Copy custume modules addons path WORKDIR /
COPY ./addons /mnt/extra-addons
COPY ./enterprise_addons /mnt/extra-addons
### Create Script folder and change the owner recurcively to odoo user COPY entrypoint.sh /
RUN mkdir -p /home/scripts \ COPY odoo.conf /etc/odoo/
&& chown -R odoo:odoo /home/scripts RUN chown odoo /etc/odoo/odoo.conf && chmod 777 /etc/odoo/odoo.conf
RUN chown odoo entrypoint.sh && chmod 777 entrypoint.sh
### Copy Script folder #Setup odoo log directory
COPY ./scripts /home/scripts RUN mkdir -p /var/log/odoo && chown -R odoo /var/log/odoo
RUN mkdir -p /mnt/tai && chown -R odoo /mnt/tai
### Create data folder for persistant volume #Setup directory for odoo attachements
RUN mkdir -p /home/data \ RUN mkdir /home/odoo_filestore && chmod -R 777 /home/odoo_filestore
&& chown -R odoo:odoo /home/data
### Copy the edited entrypoint VOLUME ["/var/log/odoo", "/home/odoo_filestore"]
COPY ./entrypoint.sh /
### Copy the edited odoo.conf COPY jta_interprise /mnt/ jta_interprise
COPY ./config/odoo.conf /etc/odoo/ #COPY web_auth_signup /mnt/web_auth_signup
#COPY web_portal /mnt/web_portal
### Edit permision on entrypoint.sh USER odoo
RUN chown odoo /entrypoint.sh \
&& chmod 777 /entrypoint.sh
### Edit permision on odoo.conf
RUN chown odoo /etc/odoo/odoo.conf
### Change user to odoo
USER odoo
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment