SHARE
    TWEET
    ferrybig

    Dockerfile smokedetector

    May 5th, 2018
    546
    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. RUN mkdir /app
    3. WORKDIR /app
    4. RUN python3 -m venv env
    5. ADD requirements.txt /app/
    6. ADD user_requirements.txt /app/
    7. RUN env/bin/pip3 install -r requirements.txt --upgrade
    8. RUN env/bin/pip3 install -r user_requirements.txt --upgrade
    9. ADD . /app/
    10. RUN git submodule init
    11. RUN git submodule update
    12. RUN env/bin/python3 -m flake8 --config=tox_tests.ini ./test/
    13. RUN env/bin/python3 -m flake8 --config=tox_classes.ini ./classes/
    14. RUN env/bin/python3 -m flake8 ./
    15. RUN env/bin/python3 -W default::Warning -m pytest test
    16. CMD ["su", "-", "SmokeDetector"]
    Advertisement
    Add Comment
    Please, Sign In to add comment
    Public Pastes
    We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
    Not a member of Pastebin yet?
    Sign Up, it unlocks many cool features!

    AltStyle によって変換されたページ (->オリジナル) /