Skip to content

Instantly share code, notes, and snippets.

@MGough
Last active June 23, 2019 21:07
Show Gist options
  • Save MGough/d9d393d5eb3938685b4e893db2b03765 to your computer and use it in GitHub Desktop.
Save MGough/d9d393d5eb3938685b4e893db2b03765 to your computer and use it in GitHub Desktop.
Docker file to build a testing container
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