AWS Elastic Beanstalk Django - 在部署到EB,pip install -r requirements.txt或配置文件中的命令时首先发生什么

bar*_*gaj 3 python django amazon-web-services python-imaging-library amazon-elastic-beanstalk

部署到Elastic Beanstalk时,所有依赖项的安装顺序是什么?对于一部分,我在requirements.txt中拥有所有项目依赖项.这包括PIL.但是因为PIL我需要安装libjpeg和其他库(这是在.ebextensions/myapp.config中)

packages:
  yum:
    libjpeg-devel: []
    freetype-devel: []
    zlib-devel: []

... rest of config file
Run Code Online (Sandbox Code Playgroud)

唯一的问题是,如果首先运行pip,我将不得不重新安装Pillow,我不知道该怎么办

tuo*_*mur 5

文档提到首先处理Packages部分.

处理这些的顺序如下:

  1. 命令

  2. 服务

  3. 容器命令