tillrohrmann commented on a change in pull request #14305:
URL: https://github.com/apache/flink/pull/14305#discussion_r537388837



##########
File path: docs/deployment/resource-providers/standalone/docker.md
##########
@@ -352,6 +352,27 @@ as described in [how to run the Flink 
image](#how-to-run-flink-image).
     # e.g. to distribute the custom image to your cluster
     docker push custom_flink_image
     ```
+  
+### Enabling Python
+
+To build a custom image which has Python and Pyflink prepared, you can refer 
to the following Dockerfile:
+{% highlight Dockerfile %}
+FROM flink
+
+# install python3 and pip3
+RUN apt-get update -y && \
+apt-get install -y python3.7 python3-pip python3.7-dev && rm -rf 
/var/lib/apt/lists/*
+RUN ln -s /usr/bin/python3 /usr/bin/python
+
+# install Python Flink
+RUN pip3 install apache-flink

Review comment:
       I would suggest to update this as part of reworking the `docker.md` page 
as my change's intention is to only maintain the current information we have. 
cc @rmetzger who is currently reworking these pages.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to