我可以看到您将命令添加
command: [/app/helloworld.py]到yaml文件。
因此,您需要(在Dockerfile中):
RUN chmod +x /app/helloworld.py
将shebang设置为您的
py文件:
#!/usr/bin/env python # whatever your defualt python to run the script
或设置与您在命令中相同的命令
Dockerfile

我可以看到您将命令添加
command: [/app/helloworld.py]到yaml文件。
因此,您需要(在Dockerfile中):
RUN chmod +x /app/helloworld.py
将shebang设置为您的
py文件:
#!/usr/bin/env python # whatever your defualt python to run the script
或设置与您在命令中相同的命令
Dockerfile