如何在docker中安装python3,并以golang作为基本映像?

2024-10-16 20:39:25 发布

您现在位置:Python中文网/ 问答频道 /正文

我的docker文件如下所示:

# Start from a Debian image with the latest version of Go installed
# and a workspace (GOPATH) configured at /go.
FROM golang

# Install our Go dependencies
RUN go get -u golang.org/x/oauth2...
ENTRYPOINT /go/bin/...

我的基本应用程序将在golang上运行,但我需要从golang访问python脚本进行一些处理。在pytho中安装一些pytho和pytho的依赖项。在


Tags: 文件ofthedockerfromimagegoversion