这阵子要将一个官方image客制化
Dockerfile结构大概是这样
======================================
From [app_image]
User root
...
COPY requirements.txt requirements.txt
pip3 install -r requirements.txt
...
User [app]
======================================
中间修正过一些dependency issue后跑出下面这样的讯息 乍看下没问题
https://docs.docker.com/language/python/build-images/#build-an-image
但实际进到container后很多套件在pip list中没出现
后来手动加了pip3 install [package]在Dockerfile仍是一样
只能事后在container中pip3 install才成功
不确定是哪个环节出问题
若有任何解法还麻烦分享 感谢!