https://flyte.org logo
#ask-the-community
Title
# ask-the-community
e

Ethan Brown

12/14/2023, 2:32 AM
Hi folks -- has anyone ever tried to build a minimal container image capable of running Flyte task code? That is... cr.flyte.org/flyteorg/flytekit:py3.9-1.10.1 is about 1.5GB in size. Is there a more minimal set of dependencies that can be installed to make it closer to the size of the 110MB Python base image?
The Dockerfile at https://github.com/flyteorg/flytekit/blob/master/Dockerfile#L22-L26 has just a few Python packages -- the question is more about figuring out what dependencies of those are truly necessary to satisfy the contract of executing a task
k

Ketan (kumare3)

12/14/2023, 2:45 PM
Ohh deck standard is not necessary and also pod
We are working on trimming flytekit
But this is very interesting to us
e

Ethan Brown

12/14/2023, 5:15 PM
Ok great -- thanks for the info. I'll keep my eyes peeled on the release notes and such
k

Ketan (kumare3)

12/15/2023, 5:11 AM
just installing base python packages makes it close to 1GB
e

Ethan Brown

12/15/2023, 9:56 PM
Yeah, Python is not the leanest and meanest container citizen unfortunately