Merge pull request #22 from srijs/feature/dockerfile

add Dockerfile
This commit is contained in:
Dan Sosedoff 2014-10-29 18:28:03 -05:00
commit 28c33dcb46

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM golang:1.3
ENV PGHOST localhost
ENV PGPORT 5432
ENV PGUSER postgres
ENV PGDATABASE postgres
ADD . /go/src/pgweb
WORKDIR /go/src/pgweb
RUN touch Makefile
RUN make setup
RUN make dev
CMD pgweb --host $PGHOST --port $PGPORT --user $PGUSER --db $PGDATABASE