If you want to make the coffin yourself, go ahead. You will, of course, need to be able to show that it is strong enough to do its job.
Your coffin will need to be lined with a waterproof lining which will not leak with unacceptable emissions.
The industry uses a product called Cremfilm. You can pay an undertaker to do this for you – or get them to sell you some Cremfilm.