Merge pull request #2326 from coreos-inc/dockerfile-improvements
Small Dockerfile improvements
This commit is contained in:
commit
0b51ea34b1
2 changed files with 3 additions and 1 deletions
|
@ -12,7 +12,7 @@ ROADMAP.md
|
||||||
requirements-nover.txt
|
requirements-nover.txt
|
||||||
run-local.sh
|
run-local.sh
|
||||||
.DS_Store
|
.DS_Store
|
||||||
*.pyc
|
**/*.pyc
|
||||||
.tox
|
.tox
|
||||||
htmlcov
|
htmlcov
|
||||||
.coverage
|
.coverage
|
||||||
|
|
|
@ -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 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 autoremove -y
|
||||||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
RUN rm -rf .npm
|
||||||
RUN rm -rf grunt
|
RUN rm -rf grunt
|
||||||
RUN rm -rf node_modules
|
RUN rm -rf node_modules
|
||||||
|
|
||||||
|
@ -154,6 +155,7 @@ ADD .git/HEAD GIT_HEAD
|
||||||
|
|
||||||
# Add all of the files!
|
# Add all of the files!
|
||||||
ADD . .
|
ADD . .
|
||||||
|
RUN pyclean .
|
||||||
|
|
||||||
# Run the tests
|
# Run the tests
|
||||||
ENV RUN_ACI_TESTS False
|
ENV RUN_ACI_TESTS False
|
||||||
|
|
Reference in a new issue