我的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的依赖项。在
如果您确实在使用像这样的debian映像:
https://github.com/docker-library/golang/blob/cffcff7fce7f6b6b5c82fc8f7b3331a10590a661/1.9/stretch/Dockerfile
哪个是标记:
golang:1.9-stretch
Debian stretch已经有python3了https://wiki.debian.org/Python
所以不需要采取进一步行动。但是,您需要安装pip,然后继续正常工作。在
相关问题 更多 >
编程相关推荐