-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile-10.0
51 lines (39 loc) · 1.14 KB
/
Dockerfile-10.0
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
ARG DISTRO=jammy
FROM docker.io/ubuntu:$DISTRO
LABEL org.opencontainers.image.authors="ACSONE SA/NV"
ARG PYTHONBIN=python2.7
ENV \
ODOO_VERSION=10.0 \
ODOO_BIN=odoo \
LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
DEBIAN_FRONTEND=noninteractive \
KWKHTMLTOPDF_SERVER_URL=http://kwkhtmltopdf
COPY ./install /tmp/install
RUN set -x \
&& /tmp/install/pre-install.sh \
&& /tmp/install/tools.sh \
&& /tmp/install/gosu.sh \
&& /tmp/install/python2.sh \
&& /tmp/install/lessc.sh \
&& /tmp/install/wkhtmltopdf.sh \
&& /tmp/install/pgdg.sh \
&& /tmp/install/post-install-clean.sh \
&& rm -r /tmp/install
# isolate from system python libraries
RUN $PYTHONBIN -m virtualenv /odoo
ENV PATH=/odoo/bin:$PATH
# odoo config file
COPY ./templates/${ODOO_VERSION} /odoo/templates
ENV OPENERP_SERVER=/etc/odoo.cfg
# odoo data dir (filestore, etc)
RUN mkdir -p /data/odoo
VOLUME ["/data/odoo"]
EXPOSE 8069 8072
# root banner
COPY ./root-banner /etc
RUN echo "cat /etc/root-banner" >> /root/.bashrc
COPY ./start-entrypoint.d /odoo/start-entrypoint.d
COPY ./bin/entrypoint.sh /usr/local/bin/entrypoint.sh
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["odoo"]