Skip to content

Use entrypoint instead of cmd for the pgweb binary #654

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 27, 2023

Conversation

tgmuender
Copy link
Contributor

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.

See https://docs.docker.com/engine/reference/builder/#entrypoint and https://docs.docker.com/engine/reference/builder/#cmd.
This allows specifying additional arguments directly after 'docker run ...', e.g. docker run --rm sosedoff/pgweb --listen=8082
@sosedoff sosedoff merged commit bed7ab9 into sosedoff:master Feb 27, 2023
jonaz pushed a commit to jonaz/pgweb that referenced this pull request Apr 10, 2024
…sosedoff#654)

See https://docs.docker.com/engine/reference/builder/#entrypoint and https://docs.docker.com/engine/reference/builder/#cmd.
This allows specifying additional arguments directly after 'docker run ...', e.g. docker run --rm sosedoff/pgweb --listen=8082
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants