You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
831 B

FROM as builder
RUN apt update -y && \
apt install -y git nodejs npm
RUN git clone /home/node
COPY ./config.local.js /home/node/app/config.local.js
RUN mkdir -p /home/node/.npm-global && \
mkdir -p /home/node/app
ENV PATH=/home/node/.npm-global/bin:$PATH
ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
RUN cd /home/node && \
npm install && \
npx browserslist@latest --update-db && \
npm run build
RUN apt update -y && \
apt install -y tini websockify
COPY --from=builder /home/node/dist ./mumble
COPY ./config.local.js ./mumble/app/config.local.js
ENV MUMBLE_SERVER=mumble:64738
ENTRYPOINT ["/usr/bin/tini", "--"]
CMD websockify --ssl-target 8080 --web=/mumble "$MUMBLE_SERVER"