Use entrypoint, remove env vars

This commit is contained in:
Chance Zibolski 2014-10-29 19:20:29 -07:00
parent 1e925591f3
commit 2e8c9cc619

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"]