  We consider the homogeneous five-vertex model on a rectangle domain of the
square lattice with so-called scalar-product boundary conditions. Peculiarity
of these boundary conditions is that the configurations of the model are in an
one-to-one correspondence with the 3D Young diagrams limited by a box of a
given size. We address the thermodynamics of the model using a connection of
the partition function with the $\tau$-function of the sixth Painlev\'e
equation. We compute an expansion of the logarithm of the partition function to
the order of a constant in the size of the system. We find that the geometry of
the domain is crucial for phase transition phenomena. Two cases need to be
considered separately: one is where the region has an asymptotically square
shape and the second one is where it is of an arbitrary rectangle, but not
square, shape. In the first case there are three regimes, which can be
attributed to dominance in the configurations of a ferroelectric order,
disorder, and anti-ferroelectric order. In the second case the third regime is
absent.
