Skip to content

Instantly share code, notes, and snippets.

@deepanshululla
Created November 21, 2018 23:08
Show Gist options
  • Save deepanshululla/d7e15e873bac35e343f438b6658489ff to your computer and use it in GitHub Desktop.
Save deepanshululla/d7e15e873bac35e343f438b6658489ff to your computer and use it in GitHub Desktop.
Dockerfile to run tests from inside your application container
FROM python:3.6-alpine
ADD . /code
WORKDIR /code
COPY requirements.txt ./
RUN pip install -r requirements.txt
RUN python -m unittest discover
CMD ["python", "app.py"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment