Dockerfile 809 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
# TODO optimize me for space
FROM easye/openjdk8

RUN export DEBIAN_FRONTEND='noninteractive' && \
    apt-get update  && \
    apt-get upgrade -y && \
    apt-get install -y \
      libffi-dev

USER root
RUN useradd -ms /bin/bash abcl
USER abcl

ENV work        /home/abcl/work
RUN mkdir -p 	${work}

WORKDIR ${work}
COPY . ${work}/abcl
USER root
RUN chown -R abcl:abcl ${work}
USER abcl

# Diagnostics for debugging ABCL construction
24
#RUN ls -lR ${work}/abcl
25

26
RUN echo "java.options=-d64  -XX:+UseG1GC -XshowSettings:vm -Dfile.encoding=UTF-8 -XX:+AggressiveOpts -XX:CompileThreshold=10" > ${work}/abcl/abcl.properties
27

28
RUN cd ${work}/abcl && ant clean && ant abcl
29 30 31 32
ENV abcl_exec_path  "${work}/abcl/abcl"

USER root
RUN ln -s ${abcl_exec_path} /usr/local/bin/abcl
33 34

USER abcl
35 36
CMD [ "/usr/local/bin/abcl" ]

37 38