Skip to content
This repository was archived by the owner on Oct 22, 2019. It is now read-only.

Commit 7e2b36e

Browse files
authored
Merge pull request #160 from tomdee/tiny-build-image-size-tweaks
Clean up a little for the build images
2 parents 03b6fda + 08a2a74 commit 7e2b36e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ MAINTAINER Tom Denham <tom@projectcalico.org>
1717
WORKDIR /code/
1818

1919
RUN apt-get update && \
20-
apt-get install -qy python-dev python-pip git libffi-dev libssl-dev procps
20+
apt-get install -qy python-dev python-pip git libffi-dev libssl-dev procps && rm -rf /var/lib/apt/lists/*
2121

2222
# Install the python packages needed for building binaries for Calico Python components.
2323
# Git is installed to allow pip installation from a Github repository.
24-
RUN pip install --upgrade pip
24+
RUN pip --no-cache-dir install --upgrade pip
2525
ADD build-requirements-frozen.txt /code/
26-
RUN pip install -r build-requirements-frozen.txt
26+
RUN pip --no-cache-dir install -r build-requirements-frozen.txt
2727
ADD . /tmp/pycalico
28-
RUN pip install /tmp/pycalico
28+
RUN pip --no-cache-dir install /tmp/pycalico

Dockerfile.build_wheezy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ MAINTAINER Tom Denham <tom@projectcalico.org>
2020
WORKDIR /code/
2121

2222
RUN apt-get update && \
23-
apt-get install -qy python-dev python-pip git libffi-dev libssl-dev procps
23+
apt-get install -qy python-dev python-pip git libffi-dev libssl-dev procps && rm -rf /var/lib/apt/lists/*
2424

2525
# Install the python packages needed for building binaries for Calico Python components.
2626
# Git is installed to allow pip installation from a Github repository.
27-
RUN pip install --upgrade pip
27+
RUN pip --no-cache-dir install --upgrade pip
2828
ADD build-requirements-frozen.txt /code/
29-
RUN pip install -r build-requirements-frozen.txt
29+
RUN pip --no-cache-dir install -r build-requirements-frozen.txt
3030
ADD . /tmp/pycalico
31-
RUN pip install /tmp/pycalico
31+
RUN pip --no-cache-dir install /tmp/pycalico

0 commit comments

Comments
 (0)