【发布时间】:2020-05-13 05:06:27
【问题描述】:
我在尝试 docker 时很头疼, 但是这个正在杀了我 我正在尝试在 docker 上安装 django,但它卡在了这一行:
Successfully installed asgiref-3.2.7 django-3.0.6 pytz-2020.1 sqlparse-0.3.1
Dockerfile:
FROM python:3.6
COPY . /app
WORKDIR /app
CMD chmod +x entry.s
# ENTRYPOINT ["./entry.sh"] # this will give me, ./entry.sh: Permission denied
ENTRYPOINT ["sh", "./entry.sh"]
entry.sh:
echo entry point for django image
cd code
pip install -r requirements.txt
# for keep container running, I couldn't find any other way
touch app.log
tail -f app.log
docker 运行输出:
entry point for django image
Collecting django
Downloading Django-3.0.6-py3-none-any.whl (7.5 MB)
Collecting sqlparse>=0.2.2
Downloading sqlparse-0.3.1-py2.py3-none-any.whl (40 kB)
Collecting pytz
Downloading pytz-2020.1-py2.py3-none-any.whl (510 kB)
Collecting asgiref~=3.2
Downloading asgiref-3.2.7-py2.py3-none-any.whl (19 kB)
Installing collected packages: sqlparse, pytz, asgiref, django
Successfully installed asgiref-3.2.7 django-3.0.6 pytz-2020.1 sqlparse-0.3.1
--> stuck here
【问题讨论】:
标签: django docker dockerfile