Dockerfile 608 B

12345678910111213141516171819202122232425
  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/SIN3D-launcher.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. # only comment in case it will be necessary
  16. RUN echo $WEB_PREFIX_URL
  17. RUN WEB_PREFIX_URL=$WEB_PREFIX_URL
  18. CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]