Commit a07ccb14 authored by Antoine Martin's avatar Antoine Martin
Browse files

Split docker image into two

Simplifies the rebuild process when the environment doesn't change
parent 548d9a83
FROM debian:jessie
WORKDIR /root
ENV LANG=C.UTF-8
# Initial system setup
RUN apt-get update && apt-get install -y \
ca-certificates \
wget \
time \
git \
build-essential \
sbcl \
libz-dev \
--no-install-recommends \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Install all needed dependencies
ADD https://raw.githubusercontent.com/quicklisp/quicklisp-controller/master/debian-setup/debian-8-packages.txt .
ADD https://www.quicklisp.org/quicklisp-controller/packages.tar .
RUN apt-get update && apt-get install -y \
--no-install-recommends `cat debian-8-packages.txt` \
&& tar xvf packages.tar \
&& dpkg -i packages/*.deb \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& rm -rf packages packages.tar debian-8-packages.txt
# Build sbcl
RUN git clone https://github.com/sbcl/sbcl \
&& cd sbcl \
&& git checkout sbcl-1.3.21 \
&& sh make.sh --fancy --dynamic-space-size=2560 \
&& sh install.sh \
&& cd .. \
&& rm -rf sbcl
# Build makeinfo
RUN wget http://ftp.gnu.org/gnu/texinfo/texinfo-6.5.tar.xz \
&& tar xvf texinfo-6.5.tar.xz \
&& cd texinfo-6.5 \
&& ./configure \
&& make \
&& make install \
&& cd .. \
&& rm -rf texinfo*
FROM alarsyo/quickref-buildenv
# Setup quickref user
RUN useradd -m -s /bin/bash quickbuilder \
......
FROM debian:jessie
WORKDIR /root
ENV LANG=C.UTF-8
# Initial system setup
RUN apt-get update && apt-get install -y \
ca-certificates \
wget \
time \
git \
build-essential \
sbcl \
libz-dev \
--no-install-recommends \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Install all needed dependencies
ADD https://raw.githubusercontent.com/quicklisp/quicklisp-controller/master/debian-setup/debian-8-packages.txt .
ADD https://www.quicklisp.org/quicklisp-controller/packages.tar .
RUN apt-get update && apt-get install -y \
--no-install-recommends `cat debian-8-packages.txt` \
&& tar xvf packages.tar \
&& dpkg -i packages/*.deb \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& rm -rf packages packages.tar debian-8-packages.txt
# Build sbcl
RUN git clone https://github.com/sbcl/sbcl \
&& cd sbcl \
&& git checkout sbcl-1.3.21 \
&& sh make.sh --fancy --dynamic-space-size=2560 \
&& sh install.sh \
&& cd .. \
&& rm -rf sbcl
# Build makeinfo
RUN wget http://ftp.gnu.org/gnu/texinfo/texinfo-6.5.tar.xz \
&& tar xvf texinfo-6.5.tar.xz \
&& cd texinfo-6.5 \
&& ./configure \
&& make \
&& make install \
&& cd .. \
&& rm -rf texinfo*
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