[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
This commit is contained in:
Christophe Monniez 2019-10-09 14:25:19 +02:00
parent 6e7938ab6a
commit def32c7106
3 changed files with 6 additions and 3 deletions

View File

@ -55,7 +55,8 @@ RUN set -x; \
&& rm -rf /var/lib/apt/lists/* odoo.deb
# Copy entrypoint script and Odoo configuration file
RUN pip3 install num2words xlwt
RUN pip3 install --upgrade pip
RUN pip3 install num2words xlwt phonenumbers
COPY ./entrypoint.sh /
COPY ./odoo.conf /etc/odoo/
RUN chown odoo /etc/odoo/odoo.conf

View File

@ -69,7 +69,8 @@ RUN set -x; \
&& rm -rf /var/lib/apt/lists/* odoo.deb
# Copy entrypoint script and Odoo configuration file
RUN pip3 install num2words xlwt
RUN pip3 install --upgrade pip
RUN pip3 install num2words xlwt phonenumbers
COPY ./entrypoint.sh /
COPY ./odoo.conf /etc/odoo/
RUN chown odoo /etc/odoo/odoo.conf

View File

@ -60,7 +60,8 @@ RUN set -x; \
&& rm -rf /var/lib/apt/lists/* odoo.deb
# Copy entrypoint script and Odoo configuration file
RUN pip3 install num2words xlwt
RUN pip3 install --upgrade pip
RUN pip3 install num2words xlwt phonenumbers
COPY ./entrypoint.sh /
COPY ./odoo.conf /etc/odoo/
RUN chown odoo /etc/odoo/odoo.conf