title: Running application unit test inside a Docker container
body: <p>I have started to use docker recently and I containerised a python application. I used the following Dockerfile. </p>
  
  <pre><code>FROM python:3.6.5
  
  # working directory
  WORKDIR /usr/src/app
  
  # copy requirement file to working directory
  COPY requirements.txt ./
  
  RUN pip install --no-cache-dir -r requirements.txt
  
  COPY . .
  
  ENTRYPOINT ["python", "./run.py"]
  </code></pre>
  
  <p>I have some unit test which I invoke using pytest. I was thinking how I can include this in the docker container such that unit tests would run inside a docker container. Should I build a different image for it. What are your recommendations on it.</p>