GCP gives a general overview of what's installed in Deep Learning VMs,但查看实际的shell脚本将更容易确定VM映像之间的确切差异,调试任何部署问题,并创建派生映像。 Someone already asked about the Dockerfiles for Deep Learning Containers,但我想我会重复这个问题,以增加它被回答的几率。
我正在使用部署到应用程序引擎,我注意到当我部署时,应用程序引擎将完全重新构建我的Dockerfile,而不需要任何缓存。这会导致部署花费更长的时间。我不会在两次部署之间更改Dockerfile。只有我的应用程序代码在改变。这是我的Dockerfile:
FROM ubuntu
EXPOSE 8080
RUN apt-get update
RUN apt-get install -yq python-crypto python-openssl libffi-dev libssl-dev
RUN pip install --upgrade pip
RUN pip install gunicorn