Created
November 27, 2024 17:10
-
-
Save jkonowitch/4fd63bad1230b0aef452e0dde6fc7d39 to your computer and use it in GitHub Desktop.
Fly.io Postgres w/ PGMQ
This file contains hidden or 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 flyio/postgres-flex:16.4 | |
RUN apt-get update && \ | |
apt-get install -y --no-install-recommends \ | |
git \ | |
build-essential \ | |
postgresql-server-dev-16 \ | |
unzip \ | |
curl && \ | |
cd /home && \ | |
curl -LO https://api.pgxn.org/dist/pgmq/1.4.5/pgmq-1.4.5.zip && \ | |
unzip pgmq-1.4.5.zip && \ | |
cd pgmq-1.4.5 && \ | |
make && \ | |
make install && \ | |
# Cleanup | |
cd / && \ | |
rm -rf /home/pgmq* && \ | |
apt-get remove -y \ | |
git \ | |
build-essential \ | |
postgresql-server-dev-16 \ | |
unzip \ | |
curl && \ | |
apt-get autoremove -y && \ | |
apt-get clean && \ | |
rm -rf /var/lib/apt/lists/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment