Expose the slave agent port consistently

Steal setup from the official Jenkins image [1]

[1] https://github.com/cloudbees/jenkins-ci.org-docker/blob/master/Dockerfile#L13-L14