Merge pull request #45 from ecnahc515/entrypoint_dockerfile

Use entrypoint for dockerfile
This commit is contained in:
Dan Sosedoff 2014-10-30 18:28:35 -05:00
commit 2a2881ec00

View File

@ -1,15 +1,10 @@
FROM golang:1.3
ENV PGHOST localhost
ENV PGPORT 5432
ENV PGUSER postgres
ENV PGDATABASE postgres
ADD . /go/src/pgweb
COPY . /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
ENTRYPOINT ["pgweb"]