3. Dockerfile Best Practices
Break into groups of 2-3 and decide who will do the typing for the group. Write an image together that
complies with as many of the following as possible:
• Is relatively small.
• Installs the curl and htop packages.
• Has few layers.
• Runs as a limited user.
• Copies in a script and makes it executable.
• The script runs at runtime.
Be sure to develop the image based upon Alpine, CentOS, and Ubuntu.
Multi-stage builds: follow the instructions at examples/docker/rust-hello-world.
4. Docker Compose
Follow the instructions here to build a Django application that relies upon PostgreSQL:
https://docs.docker.com/compose/django/