Dynamic relaxation of a liquid cavity under amorphous boundary conditions