Use entrypoint, remove env vars
This commit is contained in:
parent
1e925591f3
commit
2e8c9cc619
@ -1,15 +1,10 @@
|
|||||||
FROM golang:1.3
|
FROM golang:1.3
|
||||||
|
|
||||||
ENV PGHOST localhost
|
COPY . /go/src/pgweb
|
||||||
ENV PGPORT 5432
|
|
||||||
ENV PGUSER postgres
|
|
||||||
ENV PGDATABASE postgres
|
|
||||||
|
|
||||||
ADD . /go/src/pgweb
|
|
||||||
WORKDIR /go/src/pgweb
|
WORKDIR /go/src/pgweb
|
||||||
|
|
||||||
RUN touch Makefile
|
RUN touch Makefile
|
||||||
RUN make setup
|
RUN make setup
|
||||||
RUN make dev
|
RUN make dev
|
||||||
|
|
||||||
CMD pgweb --host $PGHOST --port $PGPORT --user $PGUSER --db $PGDATABASE
|
ENTRYPOINT ["pgweb"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user