A deformable container for single serving of a viscous or semi-solid product from an associated dispensing machine, the deformable container having a cylindrical or conical shape with two opposing end walls and at least one collapsible side wall connecting the first and second end walls, wherein one end wall is provided an opening with a cover through which the product is dispensed from the container. The collapsible side wall may have a cylindrical shape with a plurality of pleats arranged in an accordion-like shape, and be configured to collapse on itself into a substantially flattened position while maintaining a vertical alignment of each pleat. The collapsible side may be conical with a plurality of pleats arranged in a corrugated-like shape, and be configured to collapse on itself into a substantially flattened position wherein the pleats are arranged horizontally next to each other. The container may additionally include a lock mechanism for maintain the flattened shape.