diff --git a/Dockerfile b/Dockerfile index 3f49d02..a7ebdc5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]