Skip to content

Commit def32c7

Browse files
committed
[FIX] 11.0~13.0: install phonenumbers and upgrade pip
While phonenumbers is not required to run Odoo, it's a requested nice to have. Upgrading pip solves a red warning issued when pip installs docopt. closes #245 and closes #168
1 parent 6e7938a commit def32c7

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

11.0/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ RUN set -x; \
5555
&& rm -rf /var/lib/apt/lists/* odoo.deb
5656

5757
# Copy entrypoint script and Odoo configuration file
58-
RUN pip3 install num2words xlwt
58+
RUN pip3 install --upgrade pip
59+
RUN pip3 install num2words xlwt phonenumbers
5960
COPY ./entrypoint.sh /
6061
COPY ./odoo.conf /etc/odoo/
6162
RUN chown odoo /etc/odoo/odoo.conf

12.0/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ RUN set -x; \
6969
&& rm -rf /var/lib/apt/lists/* odoo.deb
7070

7171
# Copy entrypoint script and Odoo configuration file
72-
RUN pip3 install num2words xlwt
72+
RUN pip3 install --upgrade pip
73+
RUN pip3 install num2words xlwt phonenumbers
7374
COPY ./entrypoint.sh /
7475
COPY ./odoo.conf /etc/odoo/
7576
RUN chown odoo /etc/odoo/odoo.conf

13.0/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ RUN set -x; \
6060
&& rm -rf /var/lib/apt/lists/* odoo.deb
6161

6262
# Copy entrypoint script and Odoo configuration file
63-
RUN pip3 install num2words xlwt
63+
RUN pip3 install --upgrade pip
64+
RUN pip3 install num2words xlwt phonenumbers
6465
COPY ./entrypoint.sh /
6566
COPY ./odoo.conf /etc/odoo/
6667
RUN chown odoo /etc/odoo/odoo.conf

0 commit comments

Comments
 (0)