Dockerfile 669 B

1234567891011121314151617181920212223242526
  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 $WEBEXPE_PREFIX_URL
  17. # RUN WEBEXPE_PREFIX_URL=$WEBEXPE_PREFIX_URL
  18. # RUN WEB_API_PREFIX_URL=$WEB_API_PREFIX_URL
  19. CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]