问题描述:
- 环境:Windows 10、调试本地项目,上传至docker上执行,一直报错(以下报错信息)
- docker build 的时候,还有异常提示(以下):
- 刚开始还以为是权限问题,后来百度了一下,并不是这个问题。
SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to
build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.
解决:
排查了一番,结果是自己把模块库(pandas)忘记写到requirements.txt文件中了,吐槽一下自己!
1.检查项目的依赖包是否都写到requirements.txt 文件中了,且成功安装!
2.检测你Python的虚拟环境,是否正常!
3.仔细检查项目运行环境!!!