Files
DiceCloud/Dockerfile
Allen Barr 7eda742e69 Update docker files to work with v2
Updated docker files to work with version 2, and added mongo container to compose file
2023-05-03 13:23:50 -05:00

28 lines
671 B
Docker

FROM ubuntu:jammy
USER root
RUN adduser --system mt
RUN apt-get update
RUN apt-get install --quiet --yes curl
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash -
RUN apt-get update
RUN apt-get install --quiet --yes nodejs git
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