-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (31 loc) · 977 Bytes
/
Dockerfile
File metadata and controls
44 lines (31 loc) · 977 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM docker.io/eclipse-temurin:25
RUN (export DEBIAN_FRONTEND='noninteractive' && \
apt-get update && \
apt-get upgrade -y && \
apt-get install -y ant maven)
# CFFI system packages neeeded. Omit to save space
RUN (export DEBIAN_FRONTEND='noninteractive' && \
apt-get install -y maven gcc libffi-dev libc-dev pkg-config)
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
#RUN ls -lR ${work}/abcl
USER root
RUN (export DEBIAN_FRONTEND='noninteractive' && \
apt-get install -y bash gawk)
USER abcl
RUN cd ${work}/abcl && bash ci/create-abcl-properties.bash openjdk25
RUN cd ${work}/abcl && ant clean && ant abcl
ENV abcl_exec_path "${work}/abcl/abcl"
USER root
RUN ln -s ${abcl_exec_path} /usr/local/bin/abcl
USER abcl
ENTRYPOINT [ "/usr/local/bin/abcl" ]