Last active
June 23, 2019 21:07
-
-
Save MGough/d9d393d5eb3938685b4e893db2b03765 to your computer and use it in GitHub Desktop.
Docker file to build a testing container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARG BUILD_VERSION | |
FROM our-service:$BUILD_VERSION | |
COPY test /app/test | |
COPY dev-requirements.txt /app/ | |
RUN pip install -r dev-requirements.txt | |
CMD python -m pytest --junitxml /app/results.xml --cov=/app/our_codebase --cov-report xml test/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment