[FIXED JENKINS-22988] handle the case when Dockerfile is packaged inside a jar file