A fluid container for a medical fluid dispensing device, comprises a rigid body for delimiting with the inside part of its wall a volume of the medical fluid, and a membrane that covers at least an opening of the rigid body thereby creating a fluid tight lid, the opening corresponding to a measurement area, and the membrane further covers a portion of an outside part of the rigid body's wall. The membrane comprises a flexible measurement part corresponding to the opening of the rigid body, an attachment part that is fixed to the rigid body, and a second part that connects the flexible measurement part to the attachment part, and which comprises a rigid part, an upper part of which is connected to the flexible measurement part, and the rigid part further comprising a sealing surface, and a deformable part which connects the rigid part to the attachment part. The fluid container further comprises a first gap located between the rigid part and the rigid body, which is dimensioned to receive at least a part of the rigid part in a case when a force is applied onto the sealing surface and causes the deformable part to deform.