Is there a prefect docker image pre-build with pyt...
# ask-community
p
Is there a prefect docker image pre-build with python 3.12 yet?
Or, rather-
if I'm using the prefect_docker build_docker_image step in the build phase of my prefect.yaml, how can I ensure that it will be built with python3.12? I see that there are images for 3.12 but I'm not sure how I would swap them out using this interface
n
hi @Paige Gulley - are you providing your own
Dockerfile
when using
build_docker_image
? if so, you can start it with something like
Copy code
FROM prefecthq/prefect:2-python3.12

... install your deps / copy source if desired etc ...
🙌 1
p
Hey Nate! Thanks for that! No- I'm not supplying my own dockerfile- I managed to just rollback all of parts of my stack that weren't compatible with whichever python version was default in there- I'm trying to keep all my infrastructure as streamlined as possible
Relatedly- is there any support in
prefect.deployments.steps.git_clone
for specifying tags or commit numbers?
n
in general I dont believe github supports cloning at a tag or commit, rather you'd clone and then switch to the tag/commit you want, so that's what I'd do here. just add a
run_shell_script
action after your clone that does a checkout