source: trunk/abcl/Dockerfile

Last change on this file was 15744, checked in by Mark Evenson, 12 months ago

container: use eclipse-temurin as base

openjdk has been deprecated in favor of eclipse-temurin.

<https://hub.docker.com/_/eclipse-temurin>

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