New coffee products

These days there is a new trend in coffee which is freeze-dried instant coffee cubes. These are quite portable and don’t even need a complex method of preparation. My question is how the cube shape is given to the product after it is freeze-dried and how should such a product be packaged?