Merge "Clean up apt cache"

This commit is contained in:
Zuul 2019-05-23 22:09:54 +00:00 committed by Gerrit Code Review
commit 406d8fc614
1 changed files with 5 additions and 2 deletions

View File

@ -16,7 +16,9 @@
FROM python:slim as fake-python
WORKDIR /tmp
RUN apt-get update && apt-get install -y equivs
RUN apt-get update \
&& apt-get install -y equivs \
&& rm -rf /var/lib/apt/lists/*
COPY python3-dev.control /tmp/python3-dev.control
RUN equivs-build /tmp/python3-dev.control
@ -28,4 +30,5 @@ COPY scripts/get-extras-packages /usr/local/bin/get-extras-packages
COPY scripts/install-from-bindep /output/install-from-bindep
RUN dpkg -i /tmp/python3-dev_4.0.0_all.deb \
&& rm /tmp/python3-dev_4.0.0_all.deb \
&& pip install bindep
&& pip install bindep \
&& rm -rf /var/lib/apt/lists/*