From 25f7289346dcb8e692b65cf48ecceb4766a81490 Mon Sep 17 00:00:00 2001 From: Mirco Date: Thu, 20 Jun 2024 15:42:53 +0200 Subject: [PATCH] Run Stage to docker image --- image/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/image/Dockerfile b/image/Dockerfile index 635472c..928d219 100644 --- a/image/Dockerfile +++ b/image/Dockerfile @@ -5,3 +5,9 @@ ADD resources /tmp RUN /tmp/install.sh ENV LANG=en_US.UTF-8 \ JAVA_HOME=/usr/lib/jvm/graalvm + +# Run stage +WORKDIR /usr/local/src/ModeratorElection/ +EXPOSE 80 8080 +#ENV MEMBERNAMES +CMD ["java -jar ModeratorElection.jar", "curl -X GET http://localhost:8080"]