Skip to content

Why do we use inconsistent Python Docker images?

  • esap-api-gateway's esap/Dockerfile says FROM python:3.10-slim.
  • esap-api-gateway's .gitlab-ci.yml uses image: python:latest for run-unit-tests.
  • esap-worker's Dockerfile starts with FROM python:3.10-alpine.

Somebody on the internet told me that using Alpine is a bad idea (but I didn't actually test for myself). Regardless of that, though, it seems like we should be consistent everywhere unless there's a reason not to be. And we definitely don't want to be testing with a version of Python (3.11) that's different from the version we're developing with (3.10), which means we should likely never using anything :latest.