@@ -253,11 +253,10 @@ FROM $BASE_CONTAINER
253253USER root
254254
255255# Remove the manpage blacklist, install man, install docs
256- RUN rm /etc/dpkg/dpkg.cfg.d/excludes \
257- && apt-get update \
258- && dpkg -l | grep ^ii | cut -d' ' -f3 | xargs apt-get install -yq --no-install-recommends --reinstall man \
259- && apt-get clean \
260- && rm -rf /var/lib/apt/lists/*
256+ RUN rm /etc/dpkg/dpkg.cfg.d/excludes && \
257+ apt-get update --yes && \
258+ dpkg -l | grep ^ii | cut -d' ' -f3 | xargs apt-get install --yes --no-install-recommends --reinstall man && \
259+ apt-get clean && rm -rf /var/lib/apt/lists/*
261260
262261USER $NB_UID
263262```
@@ -280,10 +279,9 @@ For Ubuntu 18.04 (bionic) and earlier, you may also require to workaround for a
280279# https://git.savannah.gnu.org/cgit/man-db.git/commit/?id=8197d7824f814c5d4b992b4c8730b5b0f7ec589a
281280# https://launchpadlibrarian.net/435841763/man-db_2.8.5-2_2.8.6-1.diff.gz
282281
283- RUN echo "MANPATH_MAP ${CONDA_DIR}/bin ${CONDA_DIR}/man" >> /etc/manpath.config \
284- && echo "MANPATH_MAP ${CONDA_DIR}/bin ${CONDA_DIR}/share/man" >> /etc/manpath.config \
285- && mandb
286-
282+ RUN echo "MANPATH_MAP ${CONDA_DIR}/bin ${CONDA_DIR}/man" >> /etc/manpath.config && \
283+ echo "MANPATH_MAP ${CONDA_DIR}/bin ${CONDA_DIR}/share/man" >> /etc/manpath.config && \
284+ mandb
287285```
288286
289287Be sure to check the current base image in ` base-notebook ` before building.
@@ -417,21 +415,19 @@ ENV HADOOP_CONF_DIR /usr/local/hadoop-2.7.3/etc/hadoop
417415USER root
418416# Add proper open-jdk-8 not just the jre, needed for pydoop
419417RUN echo 'deb https://cdn-fastly.deb.debian.org/debian jessie-backports main' > /etc/apt/sources.list.d/jessie-backports.list && \
420- apt-get -y update && \
421- apt-get install --no-install-recommends -t jessie-backports -y openjdk-8-jdk && \
418+ apt-get update --yes && \
419+ apt-get install --yes -- no-install-recommends -t jessie-backports openjdk-8-jdk && \
422420 rm /etc/apt/sources.list.d/jessie-backports.list && \
423- apt-get clean && \
424- rm -rf /var/lib/apt/lists/ && \
421+ apt-get clean && rm -rf /var/lib/apt/lists/* && \
425422# Add hadoop binaries
426423 wget https://mirrors.ukfast.co.uk/sites/ftp.apache.org/hadoop/common/hadoop-2.7.3/hadoop-2.7.3.tar.gz && \
427424 tar -xvf hadoop-2.7.3.tar.gz -C /usr/local && \
428425 chown -R $NB_USER:users /usr/local/hadoop-2.7.3 && \
429426 rm -f hadoop-2.7.3.tar.gz && \
430427# Install os dependencies required for pydoop, pyhive
431- apt-get update && \
432- apt-get install --no-install-recommends -y build-essential python-dev libsasl2-dev && \
433- apt-get clean && \
434- rm -rf /var/lib/apt/lists/* && \
428+ apt-get update --yes && \
429+ apt-get install --yes --no-install-recommends build-essential python-dev libsasl2-dev && \
430+ apt-get clean && rm -rf /var/lib/apt/lists/* && \
435431# Remove the example hadoop configs and replace
436432# with those for our cluster.
437433# Alternatively this could be mounted as a volume
@@ -521,11 +517,9 @@ FROM jupyter/scipy-notebook:latest
521517USER root
522518
523519# autosklearn requires swig, which no other image has
524- RUN apt-get update && \
525- apt-get install -y --no-install-recommends swig && \
526- apt-get clean && \
527- rm -rf /var/lib/apt/lists/*
528-
520+ RUN apt-get update --yes && \
521+ apt-get install --yes --no-install-recommends swig && \
522+ apt-get clean && rm -rf /var/lib/apt/lists/*
529523
530524USER $NB_UID
531525
0 commit comments