forked from Numigi/aeroo_reports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (22 loc) · 963 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM quay.io/numigi/odoo-public:12.0
MAINTAINER numigi <[email protected]>
########
USER root
# Install dependencies for aeroo reports
RUN apt-get update && apt-get install -y --no-install-recommends \
libreoffice-writer \
openjdk-8-jre \
pdftk \
&& rm -rf /var/lib/apt/lists/*
# we can't use `pip install --user` as the $HOME of odoo is a volume
# so everything that is installed in $HOME will be overwritten by the mounting.
COPY .docker_files/requirements.txt ./requirements.txt
RUN pip3 install -r ./requirements.txt && rm ./requirements.txt
USER odoo
########
COPY ./account_check_printing_aeroo /mnt/extra-addons/account_check_printing_aeroo
COPY ./report_aeroo /mnt/extra-addons/report_aeroo
COPY ./report_aeroo_invoice /mnt/extra-addons/report_aeroo_invoice
COPY ./report_aeroo_replace_qweb /mnt/extra-addons/report_aeroo_replace_qweb
COPY .docker_files/main /mnt/extra-addons/main
COPY .docker_files/odoo.conf /etc/odoo