You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
453 B

FROM openjdk:11-jdk-slim
# Install Maven
RUN apt-get update && apt-get install -y maven && rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Create source directory
RUN mkdir -p src/main/java
# Copy source and build files
COPY SeekToBeginningTest.java src/main/java/
COPY pom.xml .
# Compile and package
RUN mvn clean package -DskipTests
# Run the test
ENTRYPOINT ["java", "-cp", "target/seek-test.jar", "SeekToBeginningTest"]
CMD ["kafka-gateway:9093"]