Ommit the path to ejabberdctl as it is already located at the $PATH Also, do not copy Dockerfile into the container as this may unnecessarily trigger re-compiling of ejabberd.