简体   繁体   English

如何结合 spring 引导和 python 3 创建 docker 文件

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

I am using python scripts in my project.我在我的项目中使用 python 脚本。

I need to add python 3 along with java in docker file.我需要在 docker 文件中添加 python 3 和 java 。

Create a docker file with derive from java and install python 3 like the following example:创建一个从 java 派生的 docker 文件并安装 python 3,如下例所示:

FROM openjdk

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

# Add here you command script
CMD ...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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