From 60e3b0f49ddef648614b19b6b3f112528e144458 Mon Sep 17 00:00:00 2001 From: Tibor Simko Date: Tue, 17 Mar 2015 01:02:17 +0100 Subject: [PATCH] docker: addition of `.dockerignore` * Adds `.dockerignore` excluding among others Python cache files. This solves a problem when using both `tox` and `docker` to run the test suite on the same host, as in: $ tox -e py27 $ docker run flaskmenu_web python setup.py test * Note that when running tests via `docker-compose`, one still needs to clean `__pycache__` manually before running the test suite, due to local directory mounting: $ find . -name __pycache__ -exec rm -rf {} \; $ docker-compose run web python setup.py test Signed-off-by: Tibor Simko --- .dockerignore | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..c762e43 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,12 @@ +*.egg-info/ +*.egg/ +*.o +*.pyc +*.so +.cache +.coverage +.git +.tox +__pycache__/ +build/ +dist/