cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Can anyone provide an example docker file for Python on Cloud Foundry?

Former Member
0 Likes
961

Hi,

I would like to deploy an OCR application on CF and need to install several libraries such as opencv and tesseract. I tried to install using the provided 'pip' and 'conda' method. However, 'pip' failed to install 'tesseract' which could be successfully installed using 'sudo apt-get install tesseract-ocr' and 'conda' failed to install 'opencv' which could be successfully installed using 'pip install opencv-python'.

Therefore, it seems that I have to deploy the application using docker image. However, I do not know what the base docker image should be and I am not sure whether there is any special requirement for deploying a docker file on CF. Can anyone provide an example docker file for Python for me to start with?

Thank you very much

Best regards

Accepted Solutions (1)

Accepted Solutions (1)

dvankempen
Product and Topic Expert
Product and Topic Expert

Hi Shiqi,

This blog describes how to run a Python app on Cloud Foundry IBM Cloud. I would not expect this to be very different to CF for SAP CP. Maybe give it a try?

Answers (1)

Answers (1)

former_member207000
Participant
0 Likes