Skip to content

Instantly share code, notes, and snippets.

@niccolomineo
Created July 28, 2024 10:27
Show Gist options
  • Save niccolomineo/bdfeb608696a3a353a9bfaeb806040ec to your computer and use it in GitHub Desktop.
Save niccolomineo/bdfeb608696a3a353a9bfaeb806040ec to your computer and use it in GitHub Desktop.
PostgreSQL 16 on Debian bookworm 12.6
FROM python:3.11-slim-bookworm
RUN curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc|sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg
RUN sudo sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
postgresql-client-16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment