python - Docker Setup with Complex Project Structure -
i can run application through docker if application straight foreword, following.
lets have hello world application written in python/django. , project directory structure
(ordinary format)
proj_directory - app.py - requirements.txt - dockerfile
the application runs if following:
docker build -t friendlyhello . `docker run -p 4000:80 friendlyhello`
(preferred format)
however, if change project directory structure following, doesnot work anymore.
proj_directory - folder/app.py - requirements.txt - dockerfile
according docker setup instructions,
set working directory /app
workdir /app
copy current directory contents container @ /app
add . /app
what change should make in dockerfile if want follow preferred format ? not sure believe should changes in above 2 lines in dockerfile. need suggestion please.
paste dockerfile can you. think want use copy, this.
copy folder folder to maintain file structure.
Comments
Post a Comment