Dockerfile 1.09 KB
Newer Older
Eric Timmons's avatar
Eric Timmons committed
1
FROM debian:buster
Eric Timmons's avatar
Eric Timmons committed
2
3
4

LABEL maintainer="etimmons@mit.edu"

Eric Timmons's avatar
Eric Timmons committed
5
6
7
ENV CCL_VERSION=1.12
ARG PLATFORM=linuxarm
ARG CCL_SCRIPT=ccl
Eric Timmons's avatar
Eric Timmons committed
8
9
10
11
12
13

WORKDIR /usr/local/src/

# hadolint ignore=DL3003,DL3008
RUN set -x \
    && apt-get update \
Eric Timmons's avatar
Eric Timmons committed
14
15
16
17
18
19
20
21
22
23
    && apt-get install -y --no-install-recommends curl ca-certificates build-essential m4 make \
    && curl -L https://github.com/Clozure/ccl/archive/v${CCL_VERSION}.tar.gz > v${CCL_VERSION}.tar.gz \
    && curl -L https://github.com/Clozure/ccl/releases/download/v${CCL_VERSION}/${PLATFORM}.tar.gz > ${PLATFORM}.tar.gz \
    && gunzip ${PLATFORM}.tar.gz \
    && gunzip v${CCL_VERSION}.tar.gz \
    && tar xf v${CCL_VERSION}.tar \
    && mv ccl-${CCL_VERSION} ccl \
    && ( cd ccl && tar xf ../${PLATFORM}.tar && cp scripts/$CCL_SCRIPT /usr/local/bin/ccl && ccl -b -e "(rebuild-ccl :full t)" ) \
    && rm -rf v${CCL_VERSION}.tar ${PLATFORM}.tar \
    && apt-get remove -y curl ca-certificates build-essential m4 make \
Eric Timmons's avatar
Eric Timmons committed
24
25
26
27
28
    && apt-get autoremove -y \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /

Eric Timmons's avatar
Eric Timmons committed
29
30
31
32
COPY docker-entrypoint /usr/local/bin/docker-entrypoint

ENTRYPOINT ["docker-entrypoint"]

Eric Timmons's avatar
Eric Timmons committed
33
CMD ["ccl"]