forked from ndssistemas/docker-odoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
80 lines (69 loc) · 3.62 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
FROM ndssistemas/docker-odoo-base:15.0
##### Repositórios TrustCode #####
WORKDIR /opt/odoo
RUN wget https://github.com/odoo/odoo/archive/15.0.zip -O odoo.zip && \
wget https://github.com/oca/web/archive/15.0.zip -O web.zip && \
wget https://github.com/oca/account-reconcile/archive/15.0.zip -O account-reconcile.zip && \
wget https://github.com/oca/server-ux/archive/15.0.zip -O server-ux.zip && \
wget https://github.com/oca/reporting-engine/archive/15.0.zip -O reporting-engine.zip && \
wget https://github.com/oca/account-financial-reporting/archive/15.0.zip -O account-financial-reporting.zip && \
wget https://github.com/oca/mis-builder/archive/15.0.zip -O mis-builder.zip && \
wget https://github.com/OCA/commission/archive/15.0.zip -O commission.zip && \
wget https://github.com/odoo/design-themes/archive/15.0.zip -O design-themes.zip && \
wget https://github.com/Trust-Code/trustcode-addons/archive/15.0.zip -O trustcode-addons.zip && \
wget https://github.com/Trust-Code/odoo-brasil/archive/15.0.zip -O odoo-brasil.zip && \
wget https://github.com/code-137/odoo-apps/archive/15.0.zip -O code137-apps.zip
RUN unzip -q odoo.zip && rm odoo.zip && mv odoo-15.0 odoo && \
unzip -q web.zip && rm web.zip && mv web-15.0 web && \
unzip -q account-reconcile.zip && rm account-reconcile.zip && mv account-reconcile-15.0 account-reconcile && \
unzip -q server-ux.zip && rm server-ux.zip && mv server-ux-15.0 server-ux && \
unzip -q reporting-engine.zip && rm reporting-engine.zip && mv reporting-engine-15.0 reporting-engine && \
unzip -q account-financial-reporting.zip && rm account-financial-reporting.zip && mv account-financial-reporting-15.0 account-financial-reporting && \
unzip -q mis-builder.zip && rm mis-builder.zip && mv mis-builder-15.0 mis-builder && \
unzip -q commission.zip && rm commission.zip && mv commission-15.0 commission && \
unzip -q design-themes.zip && rm design-themes.zip && mv design-themes-15.0 design-themes && \
unzip -q trustcode-addons.zip && rm trustcode-addons.zip && mv trustcode-addons-15.0 trustcode-addons && \
unzip -q odoo-brasil.zip && rm odoo-brasil.zip && mv odoo-brasil-15.0 odoo-brasil && \
unzip -q code137-apps.zip && rm code137-apps.zip && mv odoo-apps-15.0 code137-apps && \
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 python-sped
RUN pip install --no-cache-dir signxml==2.9.0
RUN pip install --no-cache-dir pyopenssl==22.1.0
RUN pip install --no-cache-dir formio-data==0.4.5
##### Configurações Odoo #####
ADD deploy/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
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 PYTHONPATH=$PYTHONPATH:/opt/odoo/odoo
ENV PG_HOST=localhost
ENV PG_PORT=5432
ENV PG_USER=odoo
ENV PG_PASSWORD=odoo
ENV PG_DATABASE=False
ENV ODOO_PASSWORD=admin
ENV PORT=8069
ENV LOG_FILE=/var/log/odoo/odoo.log
ENV LONGPOLLING_PORT=8072
ENV WORKERS=5
ENV DISABLE_LOGFILE=0
ENV ODOO_NDS_BRANCH=15.0
ENV CUSTOM_REPORTS=0
ENV USE_SPECIFIC_REPO=0
ENV TIME_CPU=6000
ENV TIME_REAL=7200
ENV DB_FILTER=False
ENV SENTRY_DSN=False
ENV SENTRY_ENABLED=False
VOLUME ["/opt/", "/etc/odoo"]
ENTRYPOINT ["/opt/odoo/entrypoint.sh"]
CMD ["/usr/bin/supervisord"]