sosedoff / pgweb

Cross-platform client for PostgreSQL databases
https://sosedoff.github.io/pgweb
MIT License
8.53k stars 724 forks source link

Use entrypoint instead of cmd for the pgweb binary #654

Closed tgmuender closed 1 year ago

tgmuender commented 1 year ago

This is a very small change in the Dockerfile which facilitates passing of arguments to the container/pgweb. This allows specifying additional arguments directly after docker run, e.g.:

docker run --rm sosedoff/pgweb --listen=8082 or docker run sosedoff/pgweb -h to display the help message. Currently, when running for example docker run sosedoff/pgweb -h to check for the help message, this fails because it will try to look up the arguments in $PATH.

See https://docs.docker.com/engine/reference/builder/#entrypoint and https://docs.docker.com/engine/reference/builder/#cmd.