简体   繁体   中英

How to create docker file combining with spring boot and python 3

I am using python scripts in my project.

I need to add python 3 along with java in docker file.

Create a docker file with derive from java and install python 3 like the following example:

FROM openjdk

RUN apt update -y && apt install -y python3

# Add here you command script
CMD ...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM