Skip to content

Instantly share code, notes, and snippets.

@deepanshululla
Created November 21, 2018 23:08
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