Last active
June 1, 2016 08:50
-
-
Save MoriTanosuke/881dba2e0c812e24444875064d8bf991 to your computer and use it in GitHub Desktop.
Simple Dockerfile for pgweb - web UI for postgres database
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
#!/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 |
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 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