Skip to content

Instantly share code, notes, and snippets.

@mdrokz
Created December 28, 2023 11:41
Show Gist options
  • Save mdrokz/c02ed2e17f04d19b531df09fbd543346 to your computer and use it in GitHub Desktop.
Save mdrokz/c02ed2e17f04d19b531df09fbd543346 to your computer and use it in GitHub Desktop.
Custom dockerfile to install extension from pgxn network into postgres
FROM postgres:latest
# FROM debian:latest
# libpq-dev make gcc postgresql postgresql-dev-all
RUN apt-get update && \
apt-get install -y \
python3 \
pipx \
make \
gcc \
postgresql-server-dev-$(psql --version | awk '{print substr($3, 1, 2)}')
RUN pipx install pgxnclient
RUN /root/.local/bin/pgxn install temporal_tables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment