you can not unless you give which plastic the bottle you want to use is made of. If it is HDPE or more better PTFE than it is possible. If it another known plastic than you have to compare the solubility parameters of both (plastic and DMF). Regards
I worked a lot with DMF long time ago. I do not think that storage of this strong aprotic polar solvent in a plastic tube is a good choice. Glass is still the best material for storing chemicals, generally speaking.
May be late to answer. Usage of plastic tubes is not advisable for organic solvents. Unless otherwise some specified material for storage and marketing.