Created
December 28, 2023 11:41
-
-
Save mdrokz/c02ed2e17f04d19b531df09fbd543346 to your computer and use it in GitHub Desktop.
Custom dockerfile to install extension from pgxn network into postgres
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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