-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
50 lines (38 loc) · 1.43 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
FROM trustcode/docker-odoo-base:v11
##### Repositórios TrustCode #####
WORKDIR /opt/odoo
RUN apt-get install -y unzip git wget gettext-base
RUN wget https://github.com/odoo/runbot/archive/master.zip -O runbot.zip && \
wget https://github.com/Trust-Code/odoo/archive/11.0.zip -O odoo.zip
RUN unzip -q runbot.zip && rm runbot.zip && mv runbot-master runbot && \
unzip -q odoo.zip && rm odoo.zip && mv odoo-11.0 odoo && \
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 matplotlib
##### 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
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
ENV DISABLE_LOGFILE=0
VOLUME ["/opt/", "/etc/odoo"]
ENTRYPOINT ["/opt/odoo/entrypoint.sh"]
CMD ["/usr/bin/supervisord"]