Docker-Zero-to-Hero
Docker-Zero-to-Hero copied to clipboard
Fixed the Dockerfile to make it work
- FROM ubuntu was giving errors. We have to add latest tag
- Running the python commands directly was giving errors. So, we have to create python virtual environment to resolve the issue.
- Introduced apt-get clean &&
rm -rf /var/lib/apt/lists/* this would reduce the size of the docker image that is being created. - WORKDIR has to be changed to /app/devops because we are getting errors like manage.py file not Found.