Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM python:3.6-stretch
- RUN mkdir /app
- WORKDIR /app
- RUN python3 -m venv env
- ADD requirements.txt /app/
- ADD user_requirements.txt /app/
- RUN env/bin/pip3 install -r requirements.txt --upgrade
- RUN env/bin/pip3 install -r user_requirements.txt --upgrade
- ADD . /app/
- RUN git submodule init
- RUN git submodule update
- RUN env/bin/python3 -m flake8 --config=tox_tests.ini ./test/
- RUN env/bin/python3 -m flake8 --config=tox_classes.ini ./classes/
- RUN env/bin/python3 -m flake8 ./
- RUN env/bin/python3 -W default::Warning -m pytest test
- CMD ["su", "-", "SmokeDetector"]
Advertisement
Add Comment
Please, Sign In to add comment