-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
59 lines (46 loc) · 2.32 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
FROM trustcode/docker-odoo-base:v11
##### Repositórios TrustCode #####
WORKDIR /opt/odoo
RUN apt-get install -y unzip git wget
RUN wget https://github.com/Trust-Code/odoo-product-configurator/archive/11.0.zip -O odoo-product-configurator.zip && \
wget https://github.com/Trust-Code/trustcode-addons/archive/11.0.zip -O trustcode-addons.zip && \
wget https://github.com/Trust-Code/odoo-brasil/archive/11.0.zip -O odoo-brasil.zip && \
wget https://github.com/Trust-Code/odoo/archive/11.0.zip -O odoo.zip && \
wget https://github.com/Trust-Code/stock-logistics-warehouse/archive/11.0.zip -O stock-logistics-warehouse.zip && \
wget https://github.com/Trust-Code/queue/archive/11.0.zip -O queue.zip
RUN unzip -q odoo-brasil.zip && rm odoo-brasil.zip && mv odoo-brasil-11.0 odoo-brasil && \
unzip -q odoo.zip && rm odoo.zip && mv odoo-11.0 odoo && \
unzip -q trustcode-addons.zip && rm trustcode-addons.zip && mv trustcode-addons-11.0 trustcode-addons && \
unzip -q odoo-product-configurator.zip && rm odoo-product-configurator.zip && mv odoo-product-configurator-11.0 odoo-product-configurator && \
unzip -q stock-logistics-warehouse.zip && rm stock-logistics-warehouse.zip && mv stock-logistics-warehouse-11.0 stock-logistics-warehouse && \
unzip -q queue.zip && rm queue.zip && mv queue-11.0 queue && \
cd odoo && find . -name "*.po" -not -name "pt_BR.po" -not -name "pt.po" -type f -delete && \
find . -path "*l10n_*" -delete && \
rm -R debian && rm -R doc && rm -R setup && cd ..
RUN pip install --no-cache-dir pytrustnfe3 python3-cnab python3-boleto pycnab240
##### Configurações Odoo #####
ADD conf/odoo.conf /etc/odoo/
RUN chown -R odoo:odoo /opt && \
chown -R odoo:odoo /etc/odoo/odoo.conf
RUN mkdir /opt/.ssh && \
chown -R odoo:odoo /opt/.ssh
RUN apt-get install -y gettext-base
ADD bin/autoupdate /opt/odoo
ADD bin/entrypoint.sh /opt/odoo
RUN chown odoo:odoo /opt/odoo/autoupdate && \
chmod +x /opt/odoo/autoupdate && \
chmod +x /opt/odoo/entrypoint.sh
WORKDIR /opt/odoo
ENV PG_HOST=localhost
ENV PG_PORT=5432
ENV PG_USER=odoo
ENV PG_PASSWORD=odoo
ENV PG_DATABASE=False
ENV ODOO_PASSWORD=senha_admin
ENV PORT=8069
ENV LOG_FILE=/var/log/odoo/odoo.log
ENV LONGPOLLING_PORT=8072
ENV WORKERS=3
VOLUME ["/opt/", "/etc/odoo"]
ENTRYPOINT ["/opt/odoo/entrypoint.sh"]
CMD ["/usr/bin/supervisord"]