Commit 7364fe3d authored by Ndoumbe's avatar Ndoumbe

Update Dockerfile

parent f8407dd7
FROM odoo:15
FROM odoo:15.0
USER root
RUN apt update
### /install some development tools
RUN apt install -y unoconv vim git
RUN apt install -y unoconv vim git watchdog locales locales-all
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
# RUN pip install docxtpl
# RUN apt -y install libreoffice
# RUN pip install kafka-python
WORKDIR /pdfconv/
### Copy custume modules addons path
COPY ./addons /mnt/extra-addons
COPY ./enterprise_addons /mnt/extra-addons
WORKDIR /
### Create Script folder and change the owner recurcively to odoo user
RUN mkdir -p /home/scripts \
&& chown -R odoo:odoo /home/scripts
COPY entrypoint.sh /
COPY odoo.conf /etc/odoo/
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
COPY ./scripts /home/scripts
#Setup odoo log directory
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
RUN mkdir -p /home/data \
&& chown -R odoo:odoo /home/data
#Setup directory for odoo attachements
RUN mkdir /home/odoo_filestore && chmod -R 777 /home/odoo_filestore
### Copy the edited entrypoint
COPY ./entrypoint.sh /
VOLUME ["/var/log/odoo", "/home/odoo_filestore"]
### Copy the edited odoo.conf
COPY ./config/odoo.conf /etc/odoo/
COPY jta_interprise /mnt/ jta_interprise
#COPY web_auth_signup /mnt/web_auth_signup
#COPY web_portal /mnt/web_portal
### Edit permision on entrypoint.sh
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
USER odoo
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