Software installation into a container

I am trying to setup a webserver to ‘play’ with. I have started by using apt install ‘xxxx’.
Is there a ‘better’ technique?

Yep, that’s the typical way to get packages to install in a container.

There are frameworks to get you to install services, however it is often suggested to get familiar first with “apt install”.

If you insist to try something more high-level, see, for example,

Thank you for your response. I’m quite familiar with the first method but the second I haven’t heard of - - - its quite intriguing!!

More decisions (likely with more questions to follow!