tacticalrmm/docker/meshcentral/dockerfile

11 lines
428 B
Plaintext
Raw Normal View History

2020-02-12 16:18:43 +00:00
FROM node:stretch
WORKDIR /home/node/app
ARG MESH_HOST
RUN apt-get update && apt-get install -y gettext-base
RUN npm install meshcentral
COPY config.json ./meshcentral-data/config.json.tmp
RUN envsubst '\$MESH_HOST' < /home/node/app/meshcentral-data/config.json.tmp > /home/node/app/meshcentral-data/config.json && \
rm /home/node/app/meshcentral-data/config.json.tmp
CMD ["node", "./node_modules/meshcentral/meshcentral"]