Skip to content

Commit 13de6e6

Browse files
authored
ref(Dockerfile): ditch the pip cache for a slightly smaller image (#1051)
1 parent 4f5f944 commit 13de6e6

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

rootfs/Dockerfile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,20 @@ RUN adduser --system \
1010
COPY requirements.txt /app/requirements.txt
1111

1212
RUN buildDeps='gcc git libffi-dev libpq-dev python3-dev'; \
13-
apt-get update && \
14-
apt-get install -y --no-install-recommends \
13+
apt-get update && \
14+
apt-get install -y --no-install-recommends \
1515
$buildDeps \
1616
libpq5 \
1717
python3 \
1818
sudo && \
1919
ln -s /usr/bin/python3 /usr/bin/python && \
20-
curl -sSL https://bootstrap.pypa.io/get-pip.py | python - pip==8.1.2 && \
21-
mkdir -p /configs && chown -R deis:deis /configs && \
22-
pip install --disable-pip-version-check --no-cache-dir -r /app/requirements.txt && \
23-
apt-get purge -y --auto-remove $buildDeps && \
24-
apt-get clean && \
25-
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/man /usr/share/doc
20+
curl -sSL https://bootstrap.pypa.io/get-pip.py | python - pip==8.1.2 && \
21+
mkdir -p /configs && chown -R deis:deis /configs && \
22+
pip install --disable-pip-version-check --no-cache-dir -r /app/requirements.txt && \
23+
rm -rf /root/.cache/pip/* && \
24+
apt-get purge -y --auto-remove $buildDeps && \
25+
apt-get clean && \
26+
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/man /usr/share/doc
2627

2728
COPY . /app
2829

0 commit comments

Comments
 (0)