-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (20 loc) · 922 Bytes
/
Dockerfile
File metadata and controls
25 lines (20 loc) · 922 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
FROM eclipse-temurin:17.0.4.1_1-jdk-focal
# packages
RUN apt-get update \
&& apt-get install -y libgfortran5 \
&& rm -rf /var/lib/apt/lists/*
# async-profiler
# https://github.com/jvm-profiling-tools/async-profiler
RUN mkdir -p '/opt/asyncprofiler' \
&& mkdir -p '/usr/java/packages/lib' \
&& wget -qc -O - 'https://github.com/jvm-profiling-tools/async-profiler/releases/download/v2.9/async-profiler-2.9-linux-x64.tar.gz' | tar xvz -C "/opt/asyncprofiler" \
&& ln -sfT '/opt/asyncprofiler/async-profiler-2.9-linux-x64' '/opt/asyncprofiler/default' \
&& ln -sfT '/opt/asyncprofiler/default/build/libasyncProfiler.so' '/usr/java/packages/lib/libasyncProfiler.so'
# benchmark
COPY target/benchmarks.jar /opt/lalg/
# volumes
VOLUME ["/tmp"]
# application
WORKDIR /opt/lalg/
ENTRYPOINT ["/opt/java/openjdk/bin/java"]
CMD ["-cp", "benchmarks.jar", "org.github.mazurkin.benchmark.inference.NeuralBenchmarkRunnerFull"]