File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 1
- FROM debian:stretch
1
+ FROM debian:stretch-slim
2
2
MAINTAINER Odoo S.A. <
[email protected] >
3
3
4
4
# Generate locale C.UTF-8 for postgres and general locale data
5
5
ENV LANG C.UTF-8
6
6
7
+ # Use backports to avoid install some libs with pip
8
+ RUN echo 'deb http://deb.debian.org/debian stretch-backports main' > /etc/apt/sources.list.d/backports.list
9
+
7
10
# Install some deps, lessc and less-plugin-clean-css, and wkhtmltopdf
8
11
RUN set -x; \
9
12
apt-get update \
@@ -15,13 +18,16 @@ RUN set -x; \
15
18
gnupg \
16
19
libssl1.0-dev \
17
20
node-less \
21
+ python3-num2words \
18
22
python3-pip \
23
+ python3-phonenumbers \
19
24
python3-pyldap \
20
25
python3-qrcode \
21
26
python3-renderpm \
22
27
python3-setuptools \
23
28
python3-vobject \
24
29
python3-watchdog \
30
+ python3-xlwt \
25
31
xz-utils \
26
32
&& curl -o wkhtmltox.deb -sSL https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.stretch_amd64.deb \
27
33
&& echo '7e35a63f9db14f93ec7feeb0fce76b30c08f2057 wkhtmltox.deb' | sha1sum -c - \
@@ -55,7 +61,6 @@ RUN set -x; \
55
61
&& rm -rf /var/lib/apt/lists/* odoo.deb
56
62
57
63
# Copy entrypoint script and Odoo configuration file
58
- RUN pip3 install num2words xlwt
59
64
COPY ./entrypoint.sh /
60
65
COPY ./odoo.conf /etc/odoo/
61
66
RUN chown odoo /etc/odoo/odoo.conf
Original file line number Diff line number Diff line change 1
- FROM debian:stretch
1
+ FROM debian:stretch-slim
2
2
MAINTAINER Odoo S.A. <
[email protected] >
3
3
4
4
# Generate locale C.UTF-8 for postgres and general locale data
5
5
ENV LANG C.UTF-8
6
6
7
+ # Use backports to avoid install some libs with pip
8
+ RUN echo 'deb http://deb.debian.org/debian stretch-backports main' > /etc/apt/sources.list.d/backports.list
9
+
7
10
# Install some deps, lessc and less-plugin-clean-css, and wkhtmltopdf
8
11
RUN set -x; \
9
12
apt-get update \
@@ -15,13 +18,16 @@ RUN set -x; \
15
18
gnupg \
16
19
libssl1.0-dev \
17
20
node-less \
21
+ python3-num2words \
18
22
python3-pip \
23
+ python3-phonenumbers \
19
24
python3-pyldap \
20
25
python3-qrcode \
21
26
python3-renderpm \
22
27
python3-setuptools \
23
28
python3-vobject \
24
29
python3-watchdog \
30
+ python3-xlwt \
25
31
xz-utils \
26
32
&& curl -o wkhtmltox.deb -sSL https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.stretch_amd64.deb \
27
33
&& echo '7e35a63f9db14f93ec7feeb0fce76b30c08f2057 wkhtmltox.deb' | sha1sum -c - \
@@ -69,7 +75,6 @@ RUN set -x; \
69
75
&& rm -rf /var/lib/apt/lists/* odoo.deb
70
76
71
77
# Copy entrypoint script and Odoo configuration file
72
- RUN pip3 install num2words xlwt
73
78
COPY ./entrypoint.sh /
74
79
COPY ./odoo.conf /etc/odoo/
75
80
RUN chown odoo /etc/odoo/odoo.conf
Original file line number Diff line number Diff line change 1
- FROM debian:buster
1
+ FROM debian:buster-slim
2
2
MAINTAINER Odoo S.A. <
[email protected] >
3
3
4
4
# Generate locale C.UTF-8 for postgres and general locale data
@@ -16,13 +16,16 @@ RUN set -x; \
16
16
libssl-dev \
17
17
node-less \
18
18
npm \
19
+ python3-num2words \
19
20
python3-pip \
21
+ python3-phonenumbers \
20
22
python3-pyldap \
21
23
python3-qrcode \
22
24
python3-renderpm \
23
25
python3-setuptools \
24
26
python3-vobject \
25
27
python3-watchdog \
28
+ python3-xlwt \
26
29
xz-utils \
27
30
&& curl -o wkhtmltox.deb -sSL https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.stretch_amd64.deb \
28
31
&& echo '7e35a63f9db14f93ec7feeb0fce76b30c08f2057 wkhtmltox.deb' | sha1sum -c - \
@@ -60,7 +63,6 @@ RUN set -x; \
60
63
&& rm -rf /var/lib/apt/lists/* odoo.deb
61
64
62
65
# Copy entrypoint script and Odoo configuration file
63
- RUN pip3 install num2words xlwt
64
66
COPY ./entrypoint.sh /
65
67
COPY ./odoo.conf /etc/odoo/
66
68
RUN chown odoo /etc/odoo/odoo.conf
You can’t perform that action at this time.
0 commit comments