Note: These may not perfectly match Dockerflow as the spec is a current WIP
- Put the application into
/appwithin the container - Set a non-root user and group
appin the container and run everything as this user- make the uid for the user
10001 - make the guid for the group
10001
- make the uid for the user
- Use the Docker's base containers for a language.
- Build the smallest container you can
- Optimize for cachability. Put commands that make fewer changes (
apt-get,pip install,npm install) earlier in theDockerfile.