-
Notifications
You must be signed in to change notification settings - Fork 137
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (28 loc) · 986 Bytes
/
Dockerfile
File metadata and controls
35 lines (28 loc) · 986 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
#
# ACHE Crawler Dockerfile
#
# https://github.com/ViDA-NYU/ache
#
FROM gradle:8.14-jdk17 AS ache-build
ADD . /ache-src
WORKDIR /ache-src/ache
RUN gradle installDist
# Create a custom Java runtime
RUN $JAVA_HOME/bin/jlink \
--add-modules java.base,java.logging,java.management,java.naming,java.net.http,java.xml,jdk.crypto.ec \
--strip-debug \
--no-man-pages \
--no-header-files \
--compress=2 \
--output /javaruntime
# Base the runtime image on Debian 13 and the custom JRE
FROM debian:13-slim
ENV JAVA_HOME=/opt/java/openjdk
ENV PATH="${JAVA_HOME}/bin:${PATH}"
COPY --from=ache-build /javaruntime $JAVA_HOME
WORKDIR /ache
COPY --from=ache-build /ache-src/ache/build/install/ache /ache
# Makes JVM aware of memory limit available to the container (cgroups)
ENV JAVA_OPTS='-XX:+UseContainerSupport -XX:MaxRAMPercentage=80 --add-opens java.base/java.util=ALL-UNNAMED'
ENTRYPOINT ["/ache/bin/ache"]
VOLUME ["/data", "/config"]