Skip to content

Instantly share code, notes, and snippets.

@andrewcstewart
Created May 8, 2015 22:25
Show Gist options
  • Save andrewcstewart/f5b41912747401a3db01 to your computer and use it in GitHub Desktop.
Save andrewcstewart/f5b41912747401a3db01 to your computer and use it in GitHub Desktop.
begriffs/postgrest/Dockerfile
FROM centos
RUN yum install -y tar wget postgresql-devel
RUN wget http://bin.begriffs.com/dbapi/heroku/postgrest-0.2.8.0.tar.xz
RUN tar --xz -xvf postgrest-0.2.8.0.tar.xz
RUN mv postgrest-0.2.8.0 /usr/local/bin/postgrest
CMD postgrest --db-host localhost --db-port 5432 \
--db-name my_db --db-user postgres \
--db-pass foobar --db-pool 200 \
--anonymous postgres --port 3000 \
--v1schema public
EXPOSE 3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment