fhmq / hmq

High performance mqtt broker
Apache License 2.0
1.32k stars 273 forks source link

docker: use ENTRYPOINT so command line args can get passed into container when executed #151

Closed deadprogram closed 2 years ago

deadprogram commented 2 years ago

This PR modifies the Dockerfile to use ENTRYPOINT so that command line args can get passed into container when executed.

For example:

docker build -t hmq:latest .
docker run hmq:latest -p 1883