Skip to content

Commit 6600fd7

Browse files
committed
[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.
1 parent be52b92 commit 6600fd7

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

11.0/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM debian:stretch
1+
FROM python:3.5-slim-stretch
22
LABEL maintainer="Odoo S.A. <[email protected]>"
33

44
# Generate locale C.UTF-8 for postgres and general locale data
@@ -54,7 +54,6 @@ RUN set -x; \
5454
&& rm -rf /var/lib/apt/lists/* odoo.deb
5555

5656
# Copy entrypoint script and Odoo configuration file
57-
RUN pip3 install --upgrade pip
5857
RUN pip3 install num2words xlwt phonenumbers
5958
COPY ./entrypoint.sh /
6059
COPY ./odoo.conf /etc/odoo/

12.0/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM debian:stretch
1+
FROM python:3.5-slim-stretch
22
LABEL maintainer="Odoo S.A. <[email protected]>"
33

44
# Generate locale C.UTF-8 for postgres and general locale data
@@ -68,7 +68,6 @@ RUN set -x; \
6868
&& rm -rf /var/lib/apt/lists/* odoo.deb
6969

7070
# Copy entrypoint script and Odoo configuration file
71-
RUN pip3 install --upgrade pip
7271
RUN pip3 install num2words xlwt phonenumbers
7372
COPY ./entrypoint.sh /
7473
COPY ./odoo.conf /etc/odoo/

13.0/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM debian:buster
1+
FROM python:3.7-slim-buster
22
LABEL maintainer="Odoo S.A. <[email protected]>"
33

44
# Generate locale C.UTF-8 for postgres and general locale data
@@ -59,7 +59,6 @@ RUN set -x; \
5959
&& rm -rf /var/lib/apt/lists/* odoo.deb
6060

6161
# Copy entrypoint script and Odoo configuration file
62-
RUN pip3 install --upgrade pip
6362
RUN pip3 install num2words xlwt phonenumbers
6463
COPY ./entrypoint.sh /
6564
COPY ./odoo.conf /etc/odoo/

0 commit comments

Comments
 (0)