[IMP]Odoo image v16 : use debian packages for postgresql client
This commit is contained in:
parent
c5abc2baa5
commit
0c54e27dfb
@ -35,22 +35,11 @@ RUN apt-get update && \
|
||||
build-essential git mercurial curl \
|
||||
python3-dev libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev \
|
||||
libjpeg-dev libfreetype6-dev libssl-dev \
|
||||
postgresql-client libpq-dev \
|
||||
&& curl -o wkhtmltox.deb -sSL https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.buster_amd64.deb \
|
||||
&& echo 'ea8277df4297afc507c61122f3c349af142f31e5 wkhtmltox.deb' | sha1sum -c - \
|
||||
&& apt-get install -y --no-install-recommends ./wkhtmltox.deb \
|
||||
&& rm -rf /var/lib/apt/lists/* wkhtmltox.deb \
|
||||
&& echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main' > /etc/apt/sources.list.d/pgdg.list \
|
||||
&& GNUPGHOME="$(mktemp -d)" \
|
||||
&& export GNUPGHOME \
|
||||
&& repokey='B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8' \
|
||||
&& gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "${repokey}" \
|
||||
&& gpg --batch --armor --export "${repokey}" > /etc/apt/trusted.gpg.d/pgdg.gpg.asc \
|
||||
&& gpgconf --kill all \
|
||||
&& rm -rf "$GNUPGHOME" \
|
||||
&& apt-get update \
|
||||
&& apt-get install --no-install-recommends -y postgresql-client libpq-dev \
|
||||
&& apt-get clean && rm -f /etc/apt/sources.list.d/pgdg.list \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/* wkhtmltox.deb \
|
||||
&& npm install -g rtlcss@4.0.0
|
||||
|
||||
# Create odoo user
|
||||
|
Loading…
Reference in New Issue
Block a user