-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-apt-nightly.template
54 lines (42 loc) · 1.77 KB
/
Dockerfile-apt-nightly.template
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM TEMPLATE
ENV ECL_COMMIT PLACEHOLDER
WORKDIR /usr/local/src/
# hadolint ignore=DL3003,DL3008,DL4006
RUN set -x \
&& case "$(dpkg --print-architecture)" in \
# Needed when building 32 bit arm on 64-bit host.
armhf) export build="--build=arm-linux-gnueabihf";; \
esac \
&& curl -L https://gitlab.com/embeddable-common-lisp/ecl/-/archive/$ECL_COMMIT/ecl-$ECL_COMMIT.tar.gz > ecl-${ECL_COMMIT}.tgz \
&& gunzip ecl-${ECL_COMMIT}.tgz \
&& tar xf ecl-${ECL_COMMIT}.tar \
&& mv ecl-$ECL_COMMIT ecl \
&& (cd ecl && ./configure --disable-manual $build && make -j $(nproc) && make install && make clean ) \
&& rm -rf ecl-${ECL_COMMIT}.tar \
&& ecl --version
# Add the Quicklisp installer.
WORKDIR /usr/local/share/common-lisp/source/quicklisp/
ENV QUICKLISP_SIGNING_KEY D7A3489DDEFE32B7D0E7CC61307965AB028B5FF7
RUN set -x \
&& curl -fsSL "https://beta.quicklisp.org/quicklisp.lisp" > quicklisp.lisp \
&& curl -fsSL "https://beta.quicklisp.org/quicklisp.lisp.asc" > quicklisp.lisp.asc \
&& GNUPGHOME="$(mktemp -d)" \
&& export GNUPGHOME \
&& gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "${QUICKLISP_SIGNING_KEY}" \
&& gpg --batch --verify "quicklisp.lisp.asc" "quicklisp.lisp" \
&& rm quicklisp.lisp.asc \
&& rm -rf "$GNUPGHOME"
# Add the script to trivially install Quicklisp
COPY install-quicklisp /usr/local/bin/install-quicklisp
# Install cl-launch. In the next release, move this up so that all images can
# share it.
# hadolint ignore=DL3008
RUN set -x \
&& apt-get update \
&& apt-get install --no-install-recommends -y cl-launch \
&& rm -rf /var/lib/apt/lists/*
# Add the entrypoint
WORKDIR /
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["ecl"]