For but ich haue bote of mi bale I am ded as dorenail (c.1350).
Dead soldier "emptied liquor bottle" is from 1913 in that form; the image is older:
Dead man, or Dead marine, a colloquialism for an empty bottle, possibly in humorous recognition of the fact that the spirits have departed. But the French also have the same phrase, un corps mort, a dead body, for which there can be no punning pretext. [Walsh, 1892]