I'm currently utilizing the most recent version of...
# ask-community
e
I'm currently utilizing the most recent version of Prefect - specifically, FROM prefecthq/prefect:2.10.12-python3.10. However, I'm experiencing some difficulties installing the GDAL dependencies within it. I attempted to install them using the following commands:
RUN apt-get install -y gdal-bin libgdal-dev
and
RUN apt-get install -y software-properties-common && add-apt-repository ppa:ubuntugis/ppa && apt-get update && apt-get install -y gdal-bin python3-gdal libgdal-dev
, but unfortunately, I haven't achieved the desired outcome. Has anyone encountered and managed to resolve this issue? Any insights would be greatly appreciated!
j
The Prefect image is based on the Docker Library’s Python image, which is in turn based on Debian. Mixing Debian with Ubuntu PPAs seems like it could result in weird incompatibilities. I would suggest creating your own image
FROM ubuntu
instead Also, without more details about the kind of difficulties you’re experiencing, it’s hard to make any suggestions for what you can try next
e
what is the best way to install gdal from prefect image?