Skip to content

Instantly share code, notes, and snippets.

@MoriTanosuke
Last active June 1, 2016 08:50
Show Gist options
  • Save MoriTanosuke/881dba2e0c812e24444875064d8bf991 to your computer and use it in GitHub Desktop.
Save MoriTanosuke/881dba2e0c812e24444875064d8bf991 to your computer and use it in GitHub Desktop.
Simple Dockerfile for pgweb - web UI for postgres database
#!/bin/sh
$(pwd)/pgweb_linux_386 --host $POSTGRES --port $PORT --user $USER --pass $POSTGRES_PASSWORD --db $POSTGRES_DB --bind=0.0.0.0 --ssl=$SSL
FROM alpine
EXPOSE 8081
ENV POSTGRES=postgres \
PORT=5432 USER=postgres \
POSTGRES_PASSWORD=postgres \
POSTGRES_DB=postgres \
SSL=disable
RUN apk update && apk add curl
RUN curl --silent -L -o pgweb_linux_386.zip https://github.com/sosedoff/pgweb/releases/download/v0.9.2/pgweb_linux_386.zip \
&& unzip pgweb_linux_386.zip \
&& rm pgweb_linux_386.zip
COPY docker-entrypoint.sh /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment