From f116a674ca62595d0fbf1ded206ec2e4d962ebf0 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Fri, 17 Apr 2020 16:15:25 +0200 Subject: [PATCH] [FIX] Odoo 11.0-13.0: remove postgres source list after usage When installing postgresql-client, the Debian repo from Postgresql is added as a source list. As a consequence, when installing the Odoo debian packages, the package dependencies are also searched in the Postgresql repo. In this case, it appears that python3-werkzeug version 0.16 was installed from the Postgresql repo. Closes #299 --- 11.0/Dockerfile | 1 + 12.0/Dockerfile | 1 + 13.0/Dockerfile | 1 + 3 files changed, 3 insertions(+) diff --git a/11.0/Dockerfile b/11.0/Dockerfile index 015fbf2..57ab859 100644 --- a/11.0/Dockerfile +++ b/11.0/Dockerfile @@ -48,6 +48,7 @@ RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main' > /etc && rm -rf "$GNUPGHOME" \ && apt-get update \ && apt-get install --no-install-recommends -y postgresql-client \ + && rm -f /etc/apt/sources.list.d/pgdg.list \ && rm -rf /var/lib/apt/lists/* # Install Odoo diff --git a/12.0/Dockerfile b/12.0/Dockerfile index 791890b..26d6071 100644 --- a/12.0/Dockerfile +++ b/12.0/Dockerfile @@ -48,6 +48,7 @@ RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main' > /etc && rm -rf "$GNUPGHOME" \ && apt-get update \ && apt-get install --no-install-recommends -y postgresql-client \ + && rm -f /etc/apt/sources.list.d/pgdg.list \ && rm -rf /var/lib/apt/lists/* # Install rtlcss (on Debian stretch) diff --git a/13.0/Dockerfile b/13.0/Dockerfile index 9213acd..9ec1be3 100644 --- a/13.0/Dockerfile +++ b/13.0/Dockerfile @@ -46,6 +46,7 @@ RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main' > /etc/ && rm -rf "$GNUPGHOME" \ && apt-get update \ && apt-get install --no-install-recommends -y postgresql-client \ + && rm -f /etc/apt/sources.list.d/pgdg.list \ && rm -rf /var/lib/apt/lists/* # Install rtlcss (on Debian buster)