Commit 630ceec2 authored by John Kirkham's avatar John Kirkham

Dockerfile: Clean `apt-get` lists.

parent 30fa42a6
...@@ -7,13 +7,14 @@ MAINTAINER Jupyter Project <jupyter@googlegroups.com> ...@@ -7,13 +7,14 @@ MAINTAINER Jupyter Project <jupyter@googlegroups.com>
USER root USER root
# Util to help with kernel spec later # Util to help with kernel spec later
RUN apt-get -y update && apt-get -y install jq && apt-get clean RUN apt-get -y update && apt-get -y install jq && apt-get clean && rm -rf /var/lib/apt/lists/*
# Spark dependencies # Spark dependencies
ENV APACHE_SPARK_VERSION 1.6.0 ENV APACHE_SPARK_VERSION 1.6.0
RUN apt-get -y update && \ RUN apt-get -y update && \
apt-get install -y --no-install-recommends openjdk-7-jre-headless && \ apt-get install -y --no-install-recommends openjdk-7-jre-headless && \
apt-get clean apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN cd /tmp && \ RUN cd /tmp && \
wget -q http://d3kbcqa49mib13.cloudfront.net/spark-${APACHE_SPARK_VERSION}-bin-hadoop2.6.tgz && \ wget -q http://d3kbcqa49mib13.cloudfront.net/spark-${APACHE_SPARK_VERSION}-bin-hadoop2.6.tgz && \
echo "439fe7793e0725492d3d36448adcd1db38f438dd1392bffd556b58bb9a3a2601 *spark-${APACHE_SPARK_VERSION}-bin-hadoop2.6.tgz" | sha256sum -c - && \ echo "439fe7793e0725492d3d36448adcd1db38f438dd1392bffd556b58bb9a3a2601 *spark-${APACHE_SPARK_VERSION}-bin-hadoop2.6.tgz" | sha256sum -c - && \
...@@ -32,7 +33,8 @@ RUN apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF && \ ...@@ -32,7 +33,8 @@ RUN apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF && \
echo "deb http://repos.mesosphere.io/${DISTRO} ${CODENAME} main" > /etc/apt/sources.list.d/mesosphere.list && \ echo "deb http://repos.mesosphere.io/${DISTRO} ${CODENAME} main" > /etc/apt/sources.list.d/mesosphere.list && \
apt-get -y update && \ apt-get -y update && \
apt-get --no-install-recommends -y --force-yes install mesos=0.22.1-1.0.debian78 && \ apt-get --no-install-recommends -y --force-yes install mesos=0.22.1-1.0.debian78 && \
apt-get clean apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Scala Spark kernel (build and cleanup) # Scala Spark kernel (build and cleanup)
RUN cd /tmp && \ RUN cd /tmp && \
...@@ -50,7 +52,8 @@ RUN cd /tmp && \ ...@@ -50,7 +52,8 @@ RUN cd /tmp && \
rm -rf ~/.sbt && \ rm -rf ~/.sbt && \
rm -rf /tmp/incubator-toree && \ rm -rf /tmp/incubator-toree && \
apt-get remove -y sbt && \ apt-get remove -y sbt && \
apt-get clean apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Spark and Mesos pointers # Spark and Mesos pointers
ENV SPARK_HOME /usr/local/spark ENV SPARK_HOME /usr/local/spark
...@@ -64,7 +67,8 @@ RUN apt-get update && \ ...@@ -64,7 +67,8 @@ RUN apt-get update && \
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
fonts-dejavu \ fonts-dejavu \
gfortran \ gfortran \
gcc && apt-get clean gcc && apt-get clean && \
rm -rf /var/lib/apt/lists/*
USER jovyan USER jovyan
......
...@@ -12,18 +12,21 @@ RUN apt-get update && \ ...@@ -12,18 +12,21 @@ RUN apt-get update && \
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
fonts-dejavu \ fonts-dejavu \
gfortran \ gfortran \
gcc && apt-get clean gcc && apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Julia dependencies # Julia dependencies
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
julia \ julia \
libnettle4 && apt-get clean libnettle4 && apt-get clean && \
rm -rf /var/lib/apt/lists/*
# libav-tools for matplotlib anim # libav-tools for matplotlib anim
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y --no-install-recommends libav-tools && \ apt-get install -y --no-install-recommends libav-tools && \
apt-get clean apt-get clean && \
rm -rf /var/lib/apt/lists/*
USER jovyan USER jovyan
......
...@@ -13,7 +13,8 @@ ENV DEBIAN_FRONTEND noninteractive ...@@ -13,7 +13,8 @@ ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -yq --no-install-recommends \ RUN apt-get update && apt-get install -yq --no-install-recommends \
python3-setuptools \ python3-setuptools \
python3-zmq \ python3-zmq \
&& apt-get clean && apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install Tini # Install Tini
RUN python3 -c 'from urllib.request import urlretrieve; \ RUN python3 -c 'from urllib.request import urlretrieve; \
...@@ -40,7 +41,8 @@ RUN apt-get update && \ ...@@ -40,7 +41,8 @@ RUN apt-get update && \
build-essential \ build-essential \
python3-dev && \ python3-dev && \
apt-get autoremove -y && \ apt-get autoremove -y && \
apt-get clean apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Configure container startup # Configure container startup
EXPOSE 8888 EXPOSE 8888
......
...@@ -31,7 +31,8 @@ RUN apt-get update && apt-get install -yq --no-install-recommends \ ...@@ -31,7 +31,8 @@ RUN apt-get update && apt-get install -yq --no-install-recommends \
sudo \ sudo \
locales \ locales \
libxrender1 \ libxrender1 \
&& apt-get clean && apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \ RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen locale-gen
......
...@@ -7,13 +7,14 @@ MAINTAINER Jupyter Project <jupyter@googlegroups.com> ...@@ -7,13 +7,14 @@ MAINTAINER Jupyter Project <jupyter@googlegroups.com>
USER root USER root
# Util to help with kernel spec later # Util to help with kernel spec later
RUN apt-get -y update && apt-get -y install jq && apt-get clean RUN apt-get -y update && apt-get -y install jq && apt-get clean && rm -rf /var/lib/apt/lists/*
# Spark dependencies # Spark dependencies
ENV APACHE_SPARK_VERSION 1.6.0 ENV APACHE_SPARK_VERSION 1.6.0
RUN apt-get -y update && \ RUN apt-get -y update && \
apt-get install -y --no-install-recommends openjdk-7-jre-headless && \ apt-get install -y --no-install-recommends openjdk-7-jre-headless && \
apt-get clean apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN cd /tmp && \ RUN cd /tmp && \
wget -q http://d3kbcqa49mib13.cloudfront.net/spark-${APACHE_SPARK_VERSION}-bin-hadoop2.6.tgz && \ wget -q http://d3kbcqa49mib13.cloudfront.net/spark-${APACHE_SPARK_VERSION}-bin-hadoop2.6.tgz && \
echo "439fe7793e0725492d3d36448adcd1db38f438dd1392bffd556b58bb9a3a2601 *spark-${APACHE_SPARK_VERSION}-bin-hadoop2.6.tgz" | sha256sum -c - && \ echo "439fe7793e0725492d3d36448adcd1db38f438dd1392bffd556b58bb9a3a2601 *spark-${APACHE_SPARK_VERSION}-bin-hadoop2.6.tgz" | sha256sum -c - && \
...@@ -32,7 +33,8 @@ RUN apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF && \ ...@@ -32,7 +33,8 @@ RUN apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF && \
echo "deb http://repos.mesosphere.io/${DISTRO} ${CODENAME} main" > /etc/apt/sources.list.d/mesosphere.list && \ echo "deb http://repos.mesosphere.io/${DISTRO} ${CODENAME} main" > /etc/apt/sources.list.d/mesosphere.list && \
apt-get -y update && \ apt-get -y update && \
apt-get --no-install-recommends -y --force-yes install mesos=0.22.1-1.0.debian78 && \ apt-get --no-install-recommends -y --force-yes install mesos=0.22.1-1.0.debian78 && \
apt-get clean apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Spark and Mesos pointers # Spark and Mesos pointers
ENV SPARK_HOME /usr/local/spark ENV SPARK_HOME /usr/local/spark
......
...@@ -11,7 +11,8 @@ RUN apt-get update && \ ...@@ -11,7 +11,8 @@ RUN apt-get update && \
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
fonts-dejavu \ fonts-dejavu \
gfortran \ gfortran \
gcc && apt-get clean gcc && apt-get clean && \
rm -rf /var/lib/apt/lists/*
USER jovyan USER jovyan
......
...@@ -9,7 +9,8 @@ USER root ...@@ -9,7 +9,8 @@ USER root
# libav-tools for matplotlib anim # libav-tools for matplotlib anim
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y --no-install-recommends libav-tools && \ apt-get install -y --no-install-recommends libav-tools && \
apt-get clean apt-get clean && \
rm -rf /var/lib/apt/lists/*
USER jovyan USER jovyan
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment