Skip to content

[13.0][4552][FIX] Dockerfile: update postgresql repo #72

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 13.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,23 @@ LABEL maintainer="Quartile Limited <[email protected]>"
ARG ODOO_SOURCE=OCA/OCB
ARG ODOO_VERSION=13.0

RUN apt-get update && apt-get install -y gnupg
# Update and install all necessary packages
# - `ca-certificates`: Required to securely access archived repositories over HTTPS,
# ensuring SSL/TLS certificate verification and preventing access errors.
RUN apt-get update && apt-get install -y \
wget \
ca-certificates \
gnupg \
&& rm -rf /var/lib/apt/lists/*

# Update source repository
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8 \
&& echo "deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
&& apt-get update
# Add the PostgreSQL GPG key
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8

# Add the PostgreSQL archive repository
RUN echo "deb https://apt-archive.postgresql.org/pub/repos/apt/ bionic-pgdg main" > /etc/apt/sources.list.d/pgdg.list

# Update package list
RUN apt-get update

# Set Environment Variable
ENV LC_ALL=C.UTF-8
Expand Down