Did anyone try to build a multi stage Docker image...
# ask-community
x
Did anyone try to build a multi stage Docker image for use with prefect? I'm using python:3.8-buster as the base for the builder and python:3.8-slim-buster for the main file, but I get errors like this when trying to do a KubernetesRun:
Copy code
Pod prefect-job-6ab817cf-d6446 failed.
	Container 'flow' state: terminated
		Exit Code:: 1
		Reason: Error
DockerRun doesn't even continue after pulling the image.
k
Hey @xyzy, is there anything you’re looking for that our base images don’t cover?
x
Still experimenting, but I'll probably need compilers and I'd prefer to specify Prefect Version in Pipenv
not sure about compilers yet, though... it won't be until much later that I know if I really need them
well, for now I've reverted to single stage with python:3.8-slim-buster as the base, until its clear if I really need compilers
I assume there are no big downsides compared to using a Prefect generated image, right?
k
This is a use case so it does make sense to provide your own image sometimes.