tacticalrmm/docker/containers/tactical-meshcentral/dockerfile

26 lines
536 B
Plaintext
Raw Normal View History

2021-03-26 06:32:24 +00:00
FROM node:14-alpine
2020-11-16 19:28:10 +00:00
WORKDIR /home/node/app
ENV TACTICAL_DIR /opt/tactical
2020-11-24 14:33:34 +00:00
RUN apk add --no-cache bash
SHELL ["/bin/bash", "-e", "-o", "pipefail", "-c"]
2020-11-24 14:33:34 +00:00
COPY api/tacticalrmm/tacticalrmm/settings.py /tmp/settings.py
RUN grep -o 'MESH_VER.*' /tmp/settings.py | cut -d'"' -f 2 > /tmp/MESH_VER && \
npm install meshcentral@$(cat /tmp/MESH_VER)
2020-11-16 19:28:10 +00:00
RUN chown -R node:node /home/node
2020-11-16 19:28:10 +00:00
COPY docker/containers/tactical-meshcentral/entrypoint.sh /
RUN chmod +x /entrypoint.sh
EXPOSE 8080 4443
USER node
2020-11-19 03:42:45 +00:00
2020-11-16 19:28:10 +00:00
ENTRYPOINT [ "/entrypoint.sh" ]