Dockerfile 510 B

123456789101112131415161718192021
  1. from python
  2. COPY . /usr/src/app
  3. WORKDIR /usr/src/app
  4. # Server port
  5. EXPOSE 8000
  6. RUN apt-get update
  7. # update project source code if necessary (use by default https protocol)
  8. RUN git remote set-url origin https://github.com/prise-3d/Thesis-WebExpe-Django.git
  9. RUN git pull origin master
  10. # Install dependencies and prepare project
  11. RUN python --version
  12. RUN pip install -r requirements.txt
  13. RUN python manage.py makemigrations
  14. RUN python manage.py migrate
  15. CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]