Skip to content

Commit

Permalink
Update base image
Browse files Browse the repository at this point in the history
  • Loading branch information
yaalsn authored Nov 11, 2024
1 parent 94354a6 commit 0c1affd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docker/Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ WORKDIR /benchmark
RUN mvn install -DskipTests

# Create the benchmark image
FROM eclipse-temurin:17.0.6_10-jdk
FROM ubuntu:22.04
RUN apt-get update && apt install temurin-17-jdk -y \
&& echo networkaddress.cache.ttl=1 >> /usr/lib/jvm/temurin-17-jdk-$ARCH/conf/security/java.security \
&& echo networkaddress.cache.negative.ttl=1 >> /usr/lib/jvm/temurin-17-jdk-$ARCH/conf/security/java.security
COPY --from=build /benchmark/package/target/openmessaging-benchmark-*-SNAPSHOT-bin.tar.gz /
RUN mkdir /benchmark && tar -xzf openmessaging-benchmark-*-SNAPSHOT-bin.tar.gz -C /benchmark --strip=1
RUN rm /openmessaging-benchmark-*-SNAPSHOT-bin.tar.gz
WORKDIR /benchmark
WORKDIR /benchmark

0 comments on commit 0c1affd

Please sign in to comment.