make docker image smaller by deleting target directories which aren't
needed