python - Docker cannot find file when building the image -


this dockerfile

from python:3.6-slim  copy app/ /app  expose 8000  run cd /app/ run pip install -r requirements.txt  workdir /app/project/  run python manage.py makemigrations run python manage.py migrate run export django_settings_module="project.settings"  cmd [ "python", "manage.py", "server"] 

when try build it, fails saying can't find requirements.txt inside app folder.

when do

run cd /app/ run pip install -r requirements.txt 

docker enter /app/project, , then, come previous folder, then, second command fail. have use this:

run cd /app/ && pip install -r requirements.txt 

edit: match comment

also, should replace export line env, example:

env django_settings_module project.settings 

Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -