Created
May 12, 2020 05:20
-
-
Save zorteran/847e7afa49700f067402b5bbca2ee0f0 to your computer and use it in GitHub Desktop.
Kafka Streams Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM maven:3-openjdk-8-slim AS BUILD | |
COPY pom.xml /tmp/ | |
COPY src /tmp/src/ | |
WORKDIR /tmp/ | |
RUN mvn package | |
FROM openjdk:8-alpine AS RUNTIME | |
RUN apk update && apk add --no-cache libc6-compat | |
RUN ln -s /lib64/ld-linux-x86-64.so.2 /lib/ld-linux-x86-64.so.2 | |
WORKDIR /app/ | |
COPY --from=BUILD /tmp/target/wiadrodanych-kafka-streams-*-jar-with-dependencies.jar . | |
ENTRYPOINT ["java", "-cp", "*", "wiadrodanych.streams.ZtmStream"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment