source: tags/1.5.0/Dockerfile

Last change on this file was 14981, checked in by Mark Evenson, 7 years ago

docker: ensure that abcl runs under a UTF-8 environment

The use of UTF-8 under docker depends on the commits to the inheriting
container in
<https://github.com/easye/openjdk8/commit/5fe27fdaf77bc9fa4007b7b60c92bae1de07baf3>.

Comment out diagnostics listing all files in container at build time.

Don't add a java_home setting as the easye/openjdk8 has already
defaults pointing at the openjdk-8-jdk installation.

File size: 809 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
24#RUN ls -lR ${work}/abcl
25
26RUN echo "java.options=-d64  -XX:+UseG1GC -XshowSettings:vm -Dfile.encoding=UTF-8 -XX:+AggressiveOpts -XX:CompileThreshold=10" > ${work}/abcl/abcl.properties
27
28RUN cd ${work}/abcl && ant clean && ant abcl
29ENV abcl_exec_path  "${work}/abcl/abcl"
30
31USER root
32RUN ln -s ${abcl_exec_path} /usr/local/bin/abcl
33
34USER abcl
35CMD [ "/usr/local/bin/abcl" ]
36
37
38
Note: See TracBrowser for help on using the repository browser.