Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce image size #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ MAINTAINER The GAP Group <support@gap-system.org>

ENV DEBIAN_FRONTEND noninteractive

# reduce image size by never installing recommends or suggests
RUN echo 'APT::Install-Recommends "0";' >> /etc/apt/apt.conf
RUN echo 'APT::Install-Suggests "0";' >> /etc/apt/apt.conf

# Prerequisites
RUN dpkg --add-architecture i386 \
&& apt-get update -qq \
Expand All @@ -12,12 +16,14 @@ RUN dpkg --add-architecture i386 \
autogen \
automake \
build-essential \
ca-certificates \
cmake \
curl \
g++ \
gcc \
gcc-multilib \
git \
gnupg \
libboost-dev \
libcdd-dev \
libcurl4-openssl-dev \
Expand All @@ -41,6 +47,8 @@ RUN dpkg --add-architecture i386 \
sudo \
unzip \
wget \
zip \
zlib1g-dev \
&& ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime

RUN pip3 install notebook jupyterlab_launcher jupyterlab traitlets ipython vdom
Expand Down Expand Up @@ -127,12 +135,15 @@ RUN cd /tmp/ \
&& make install

# Macaulay2
RUN echo "deb http://www.math.uiuc.edu/Macaulay2/Repositories/Ubuntu $(lsb_release -sc) main" >/etc/apt/sources.list.d/macaulay2.list \
RUN . /etc/lsb-release \
&& echo "deb http://www.math.uiuc.edu/Macaulay2/Repositories/Ubuntu $DISTRIB_CODENAME main" >/etc/apt/sources.list.d/macaulay2.list \
&& wget http://www2.macaulay2.com/Macaulay2/PublicKeys/Macaulay2-key \
&& apt-key add Macaulay2-key \
&& apt-get update -qq \
&& apt-get -qq install -y macaulay2

RUN rm -r /tmp/*

ENV LD_LIBRARY_PATH /usr/local/lib:${LD_LIBRARY_PATH}

# Set up new user and home directory in environment.
Expand Down