ferrybig

Dockerfile smokedetector

May 5th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. FROM python:3.6-stretch
  2.  
  3. RUN mkdir /app
  4.  
  5. WORKDIR /app
  6.  
  7. RUN python3 -m venv env
  8.  
  9. ADD requirements.txt /app/
  10. ADD user_requirements.txt /app/
  11.  
  12. RUN env/bin/pip3 install -r requirements.txt --upgrade
  13. RUN env/bin/pip3 install -r user_requirements.txt --upgrade
  14.  
  15. ADD . /app/
  16.  
  17. RUN git submodule init
  18. RUN git submodule update
  19.  
  20. RUN env/bin/python3 -m flake8 --config=tox_tests.ini ./test/
  21. RUN env/bin/python3 -m flake8 --config=tox_classes.ini ./classes/
  22. RUN env/bin/python3 -m flake8 ./
  23. RUN env/bin/python3 -W default::Warning -m pytest test
  24.  
  25. CMD ["su", "-", "SmokeDetector"]
Advertisement
Add Comment
Please, Sign In to add comment