14 lines
337 B
Docker
14 lines
337 B
Docker
#Build Stage
|
|
FROM ubuntu:noble-20240605
|
|
|
|
ADD resources /tmp
|
|
RUN /tmp/install.sh
|
|
ENV LANG=en_US.UTF-8 \
|
|
JAVA_HOME=/usr/lib/jvm/graalvm
|
|
|
|
# Run stage
|
|
FROM eclipse-temurin:17.0.11_9-jdk
|
|
WORKDIR /usr/local/src/ModeratorElection/
|
|
EXPOSE 80 8080
|
|
#ENV MEMBERNAMES
|
|
CMD ["java -jar ModeratorElection.jar", "curl -X GET http://localhost:8080"]
|