Skip to content

Best practice advice for writing Dockerfiles

Ian Roberts requested to merge docker-best-practice into Release3

Added a few best practice guidelines for LT service developers to encourage good practice when creating images, in particular

  • keep the image small
  • don't run as root
  • include all dependencies (e.g. cache huggingface models rather than downloading them at runtime)
  • it's better to crash and let the platform restart you than to spend ages trying to recover on your own

Merge request reports