-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile-14.0
54 lines (42 loc) · 1.22 KB
/
Dockerfile-14.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
52
53
54
ARG DISTRO=focal
FROM docker.io/ubuntu:$DISTRO
LABEL org.opencontainers.image.authors="ACSONE SA/NV"
ARG PYTHONBIN=python3.6
ENV \
ODOO_VERSION=14.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/python3.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 set -x \
&& $PYTHONBIN -m venv /odoo \
&& /odoo/bin/pip install -U pip wheel setuptools
ENV PATH=/odoo/bin:$PATH
ENV VIRTUAL_ENV=/odoo
# odoo config file
COPY ./templates/${ODOO_VERSION} /odoo/templates
ENV OPENERP_SERVER=/etc/odoo.cfg
ENV ODOO_RC=/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"]