Last change
on this file was
15293,
checked in by Mark Evenson, 4 years ago
|
docker: use openjdk11 for build
Use autoconfiguration mechanism to set properties.
Include a Lisp fragment to install Quicklisp.
|
File size:
733 bytes
|
Line | |
---|
1 | # TODO optimize me for space |
---|
2 | FROM openjdk:11 |
---|
3 | |
---|
4 | RUN export DEBIAN_FRONTEND='noninteractive' && \ |
---|
5 | apt-get update && \ |
---|
6 | apt-get upgrade -y && \ |
---|
7 | apt-get install -y \ |
---|
8 | libffi-dev ant maven |
---|
9 | |
---|
10 | USER root |
---|
11 | RUN useradd -ms /bin/bash abcl |
---|
12 | USER abcl |
---|
13 | |
---|
14 | ENV work /home/abcl/work |
---|
15 | RUN mkdir -p ${work} |
---|
16 | |
---|
17 | WORKDIR ${work} |
---|
18 | COPY . ${work}/abcl |
---|
19 | USER root |
---|
20 | RUN chown -R abcl:abcl ${work} |
---|
21 | USER abcl |
---|
22 | |
---|
23 | # Diagnostics for debugging ABCL construction |
---|
24 | #RUN ls -lR ${work}/abcl |
---|
25 | |
---|
26 | RUN cd ${work}/abcl && bash ci/create-abcl-properties.bash openjdk11 |
---|
27 | |
---|
28 | RUN cd ${work}/abcl && ant clean && ant abcl |
---|
29 | ENV abcl_exec_path "${work}/abcl/abcl" |
---|
30 | |
---|
31 | USER root |
---|
32 | RUN ln -s ${abcl_exec_path} /usr/local/bin/abcl |
---|
33 | |
---|
34 | USER abcl |
---|
35 | ENTRYPOINT [ "/usr/local/bin/abcl" ] |
---|
36 | |
---|
37 | |
---|
38 | |
---|
Note: See
TracBrowser
for help on using the repository browser.