tacticalrmm/docker/containers/tactical-meshcentral/dockerfile

25 lines
493 B
Plaintext
Raw Normal View History

FROM node:16-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 npm install meshcentral@$(grep -o 'MESH_VER.*' /tmp/settings.py | cut -d'"' -f 2)
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" ]