2024-06-13 20:20:25 +00:00
|
|
|
#Build Stage
|
2024-06-20 13:09:08 +00:00
|
|
|
FROM ubuntu:noble-20240605
|
2024-06-13 20:20:25 +00:00
|
|
|
|
|
|
|
ADD resources /tmp
|
|
|
|
RUN /tmp/install.sh
|
2024-06-20 13:09:08 +00:00
|
|
|
ENV LANG=en_US.UTF-8 \
|
|
|
|
JAVA_HOME=/usr/lib/jvm/graalvm
|
2024-06-20 13:42:53 +00:00
|
|
|
|
|
|
|
# Run stage
|
2024-06-20 13:45:49 +00:00
|
|
|
FROM eclipse-temurin:17.0.11_9-jdk
|
2024-06-20 13:42:53 +00:00
|
|
|
WORKDIR /usr/local/src/ModeratorElection/
|
|
|
|
EXPOSE 80 8080
|
|
|
|
#ENV MEMBERNAMES
|
|
|
|
CMD ["java -jar ModeratorElection.jar", "curl -X GET http://localhost:8080"]
|