A container comprises a sleeve and two end walls. The sleeve is made of a tube having a plurality of paper layers. The end walls are inserted into the sleeve and are bonded in a sealed way thereto. According to the present invention, each of the end walls has a rim which projects outwards, around which rim the tube is bent and bonded by means of heat sealing. A stable, sealed bonding is thus obtained, whereby the application of different materials for the end walls is possible.