I found that one is able to write an 'init' script for droplets. I'm going to write such a script to automate all the apt-get commands.