ModeratorElection/image/Dockerfile

28 lines
No EOL
838 B
Docker

#Build Stage
FROM node:22-bookworm-slim as build-env
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
FROM ubuntu:noble-20240605
RUN apt-get update
RUN apt-get -qqy upgrade
EXPOSE 8080
CMD ["mkdir /usr/local/src/ModeratorElection"]
WORKDIR /usr/local/src/ModeratorElection/
#*SNAPSHOT should be part of the name, asterisk for continueing versionnumber
#copy jar
#COPY --from=build-env /usr/local/src/ModeratorElection/build/libs/ModeratorElection.jar ./ModeratorElection.jar
#copy graalvm binary
COPY --from=build-env /usr/local/src/ModeratorElection/build/native/nativeCompile/ModeratorElection .
CMD ["chmod +x ModerationElection"]
#ENV MEMBERNAMES
#ENTRYPOINT ["java", "-jar", "ModeratorElection.jar"]
ENTRYPOINT ["ModeratorElection"]