FROM ubuntu:jammy USER root RUN adduser --system mt RUN apt-get update && apt-get install -y ca-certificates curl gnupg git RUN mkdir -p /etc/apt/keyrings RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key \ | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" \ > /etc/apt/sources.list.d/nodesource.list RUN apt-get update && apt-get install -y nodejs USER mt RUN curl https://install.meteor.com/ | sh WORKDIR /home/mt RUN git clone https://github.com/ThaumRystra/DiceCloud dicecloud WORKDIR /home/mt/dicecloud/app RUN npm install --production ENV PATH=$PATH:/home/mt/.meteor RUN meteor build --directory ~/dc/ --architecture os.linux.x86_64 WORKDIR /home/mt/dc/bundle/programs/server RUN npm install WORKDIR /home/mt/dc/bundle RUN rm -r /home/mt/dicecloud ENTRYPOINT node main.js