Docker build errors

来源:互联网 发布:淘宝商家信用卡手续费 编辑:程序博客网 时间:2024/05/17 12:07

1. setup mysql: mysql_config: not found

解决方法:在Dockerfile中添加:

RUN apt-get updateRUN apt-get install -y libmysqlclient-dev

参考:https://stackoverflow.com/questions/25682408/docker-setup-with-a-mysql-container-for-a-python-app

2. configure: error: no acceptable C compiler found in $PATH

解决方法:在Dockerfile中添加:

RUN apt-get install -y build-essential
原创粉丝点击