Skip to content

Commit

Permalink
Add dockerfile for compatibility tests (#1024)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrpio authored Oct 26, 2023
1 parent 057e0f4 commit 37824ce
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile.compat
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM gradle:6-jdk11 AS build
COPY --chown=gradle:gradle . /home/gradle/src
WORKDIR /home/gradle/src
RUN gradle clean compileTestJava --no-daemon

FROM openjdk:11-jre-slim
RUN mkdir /app
COPY --from=build /home/gradle/src/build/classes/java /app
ENTRYPOINT ["java", "--class-path=/app/main:/app/test", "io.nats.compatibility.ClientCompatibilityMain"]

0 comments on commit 37824ce

Please sign in to comment.