-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
35 lines (26 loc) · 1.01 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM debian:12
LABEL org.opencontainers.image.source=https://github.com/coalton-lang/base-images
LABEL org.opencontainers.image.description="CCL base image for Coalton CI"
LABEL org.opencontainers.image.licenses=MIT
ARG CCL_VERSION=1.13
# Install dependencies
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install --no-install-recommends -y \
ca-certificates \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /src
# Download and install ccl
RUN curl -L -o ccl-binary.tar.gz https://github.com/Clozure/ccl/releases/download/v${CCL_VERSION}/ccl-${CCL_VERSION}-linuxx86.tar.gz \
&& tar xf ccl-binary.tar.gz -C /usr/local/src \
&& rm ccl-binary.tar.gz
ENV PATH=/usr/local/src/ccl/scripts:${PATH}
# Download and install quicklisp
RUN curl -O https://beta.quicklisp.org/quicklisp.lisp \
&& ccl64 --load quicklisp.lisp --eval "(quicklisp-quickstart:install)" \
&& rm quicklisp.lisp
COPY ccl-init.lisp /root
COPY ccl64-wrapped.sh /usr/local/src/ccl/scripts
WORKDIR /lisp
CMD ["ccl64-wrapped.sh"]