source: trunk/abcl/Dockerfile @ 14924

Last change on this file since 14924 was 14924, checked in by Mark Evenson, 5 years ago

docker: ensure that <file:/usr/local/bin/abcl> refers to an executable abcl

Images descending from this one should now be able to refer to "abcl"
in CMD/RUN invocations, simplifying the association of dependencies.

File size: 728 bytes
Line 
1# TODO optimize me for space
2FROM easye/openjdk8
3
4RUN export DEBIAN_FRONTEND='noninteractive' && \
5    apt-get update  && \
6    apt-get upgrade -y && \
7    apt-get install -y \
8      libffi-dev
9
10USER root
11RUN useradd -ms /bin/bash abcl
12USER abcl
13
14ENV work        /home/abcl/work
15RUN mkdir -p  ${work}
16
17WORKDIR ${work}
18COPY . ${work}/abcl
19USER root
20RUN chown -R abcl:abcl ${work}
21USER abcl
22
23# Diagnostics for debugging ABCL construction
24RUN ls -lR ${work}/abcl
25
26RUN JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 cd ${work}/abcl && ant clean && ant abcl
27
28ENV abcl_exec_path  "${work}/abcl/abcl"
29
30USER root
31RUN ln -s ${abcl_exec_path} /usr/local/bin/abcl
32
33USER abcl
34CMD [ "${abcl_exec_path}", "--eval", "(loop :doing (sleep 1))" ]
35
36
Note: See TracBrowser for help on using the repository browser.