[FIX] 11.0-13.0: use python image as base image

In order to have an up to date version of Python and therefore an up to
date pip version, the Python Docker image is used instead of the Debian
one.

The choosen Python Docker images are based on desired version of Debian.

This avoid to upgrade pip inside the image, that was resulting in a
useless copy of pip.
This commit is contained in:
Christophe Monniez 2019-10-10 16:56:53 +02:00
parent be52b925c1
commit 6600fd73a6
3 changed files with 3 additions and 6 deletions

View File

@ -1,4 +1,4 @@
FROM debian:stretch
FROM python:3.5-slim-stretch
LABEL maintainer="Odoo S.A. <info@odoo.com>"
# Generate locale C.UTF-8 for postgres and general locale data
@ -54,7 +54,6 @@ RUN set -x; \
&& rm -rf /var/lib/apt/lists/* odoo.deb
# Copy entrypoint script and Odoo configuration file
RUN pip3 install --upgrade pip
RUN pip3 install num2words xlwt phonenumbers
COPY ./entrypoint.sh /
COPY ./odoo.conf /etc/odoo/

View File

@ -1,4 +1,4 @@
FROM debian:stretch
FROM python:3.5-slim-stretch
LABEL maintainer="Odoo S.A. <info@odoo.com>"
# Generate locale C.UTF-8 for postgres and general locale data
@ -68,7 +68,6 @@ RUN set -x; \
&& rm -rf /var/lib/apt/lists/* odoo.deb
# Copy entrypoint script and Odoo configuration file
RUN pip3 install --upgrade pip
RUN pip3 install num2words xlwt phonenumbers
COPY ./entrypoint.sh /
COPY ./odoo.conf /etc/odoo/

View File

@ -1,4 +1,4 @@
FROM debian:buster
FROM python:3.7-slim-buster
LABEL maintainer="Odoo S.A. <info@odoo.com>"
# Generate locale C.UTF-8 for postgres and general locale data
@ -59,7 +59,6 @@ RUN set -x; \
&& rm -rf /var/lib/apt/lists/* odoo.deb
# Copy entrypoint script and Odoo configuration file
RUN pip3 install --upgrade pip
RUN pip3 install num2words xlwt phonenumbers
COPY ./entrypoint.sh /
COPY ./odoo.conf /etc/odoo/