From 08f187e410e9d8227fd06497ccca80dd2d57cded Mon Sep 17 00:00:00 2001 From: JaninduMunasinghe Date: Sat, 12 Jul 2025 11:32:56 +0530 Subject: [PATCH] Dockerize publisher app --- publisher/Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 publisher/Dockerfile diff --git a/publisher/Dockerfile b/publisher/Dockerfile new file mode 100644 index 0000000..a0cc7ca --- /dev/null +++ b/publisher/Dockerfile @@ -0,0 +1,14 @@ +# Use an official OpenJDK image as a base +FROM eclipse-temurin:21-jre + +# Set the working directory +WORKDIR /app + +# Copy the built jar file into the container +COPY target/publisher-0.0.1-SNAPSHOT.jar app.jar + +# Expose the application port +EXPOSE 9219 + +# Run the application +ENTRYPOINT ["java", "-jar", "app.jar"] \ No newline at end of file