From 154090ca007ec21b1f80b11a41c78ae0aa431abd Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 1 Feb 2017 14:16:12 -0500 Subject: [PATCH 1/2] Remove npm cache because is (falsely) triggers Disney's vuln scanner Also unneeded space-wise in the image --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 3c32036d2..d9b6d952c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -121,6 +121,7 @@ RUN optipng -clobber -quiet static/img/**/*.png RUN apt-get remove -y --auto-remove python-dev g++ libjpeg62-dev libevent-dev libldap2-dev libsasl2-dev libpq-dev libffi-dev libgpgme11-dev nodejs npm jpegoptim optipng RUN apt-get autoremove -y RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* +RUN rm -rf .npm RUN rm -rf grunt RUN rm -rf node_modules From 67f54bc8d3532d3a10c1a070361e28d60dc1f5f4 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 1 Feb 2017 14:16:21 -0500 Subject: [PATCH 2/2] Delete all .pyc files --- .dockerignore | 2 +- Dockerfile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index ce563e77b..ceca66501 100644 --- a/.dockerignore +++ b/.dockerignore @@ -12,7 +12,7 @@ ROADMAP.md requirements-nover.txt run-local.sh .DS_Store -*.pyc +**/*.pyc .tox htmlcov .coverage diff --git a/Dockerfile b/Dockerfile index d9b6d952c..0657f5af6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -155,6 +155,7 @@ ADD .git/HEAD GIT_HEAD # Add all of the files! ADD . . +RUN pyclean . # Run the tests ENV RUN_ACI_TESTS False