feat: update docker image to debian 12 (bookwork) (#2486)
postgres client install was failing for bullseye, i think its time
This commit is contained in:
parent
c030ccc4f8
commit
f60122c64a
1 changed files with 5 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
FROM python:3.10-slim-bullseye
|
FROM python:3.10-slim-bookworm
|
||||||
|
|
||||||
RUN apt-get clean
|
RUN apt-get clean
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
|
|
@ -8,9 +8,10 @@ RUN curl -sSL https://install.python-poetry.org | python3 -
|
||||||
ENV PATH="/root/.local/bin:$PATH"
|
ENV PATH="/root/.local/bin:$PATH"
|
||||||
|
|
||||||
# needed for backups postgresql-client version 14 (pg_dump)
|
# needed for backups postgresql-client version 14 (pg_dump)
|
||||||
RUN apt-get install -y apt-utils wget
|
RUN apt install -y postgresql-common ca-certificates
|
||||||
RUN echo "deb http://apt.postgresql.org/pub/repos/apt bullseye-pgdg main" > /etc/apt/sources.list.d/pgdg.list
|
RUN install -d /usr/share/postgresql-common/pgdg
|
||||||
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
|
RUN curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc
|
||||||
|
RUN sh -c 'echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt bookworm-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y postgresql-client-14
|
RUN apt-get install -y postgresql-client-14
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue