ModeratorElection/image/Dockerfile

25 lines
643 B
Docker
Raw Normal View History

#Build Stage
#if npm is needed for development purposes, switch to node
#FROM node:22-bookworm-slim as build-env
FROM ubuntu:latest as build-env
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
FROM ubuntu:latest
RUN apt-get update
RUN apt-get -qqy upgrade
EXPOSE 8080
CMD ["mkdir /usr/local/src/ModeratorElection"]
2024-06-20 13:42:53 +00:00
WORKDIR /usr/local/src/ModeratorElection/
#copy graalvm binary
2024-06-25 13:24:00 +00:00
COPY --from=build-env /usr/local/src/ModeratorElection/build/native/nativeCompile/ /usr/local/src/ModeratorElection/
RUN chmod 0740 ./ModeratorElection
ENTRYPOINT ["MEMBERNAMES ./ModeratorElection"]