Line | |
---|
1 | FROM docker.io/eclipse-temurin:17 |
---|
2 | |
---|
3 | RUN (export DEBIAN_FRONTEND='noninteractive' && \ |
---|
4 | apt-get update && \ |
---|
5 | apt-get upgrade -y && \ |
---|
6 | apt-get install -y \ |
---|
7 | libffi-dev ant maven) |
---|
8 | |
---|
9 | USER root |
---|
10 | RUN useradd -ms /bin/bash abcl |
---|
11 | USER abcl |
---|
12 | |
---|
13 | ENV work /home/abcl/work |
---|
14 | RUN mkdir -p ${work} |
---|
15 | |
---|
16 | WORKDIR ${work} |
---|
17 | COPY . ${work}/abcl |
---|
18 | USER root |
---|
19 | RUN chown -R abcl:abcl ${work} |
---|
20 | USER abcl |
---|
21 | |
---|
22 | # Diagnostics for debugging ABCL construction |
---|
23 | #RUN ls -lR ${work}/abcl |
---|
24 | |
---|
25 | RUN cd ${work}/abcl && bash ci/create-abcl-properties.bash openjdk11 |
---|
26 | |
---|
27 | RUN cd ${work}/abcl && ant clean && ant abcl |
---|
28 | ENV abcl_exec_path "${work}/abcl/abcl" |
---|
29 | |
---|
30 | USER root |
---|
31 | RUN ln -s ${abcl_exec_path} /usr/local/bin/abcl |
---|
32 | |
---|
33 | USER abcl |
---|
34 | ENTRYPOINT [ "/usr/local/bin/abcl" ] |
---|
35 | |
---|
36 | |
---|
37 | |
---|
Note: See
TracBrowser
for help on using the repository browser.