2020-11-16 19:28:10 +00:00
|
|
|
FROM node:12-alpine
|
|
|
|
|
|
|
|
WORKDIR /home/node/app
|
|
|
|
|
|
|
|
ENV TACTICAL_DIR /opt/tactical
|
|
|
|
|
2020-11-24 14:33:34 +00:00
|
|
|
RUN apk add --no-cache bash
|
|
|
|
|
2020-11-29 04:26:53 +00:00
|
|
|
SHELL ["/bin/bash", "-e", "-o", "pipefail", "-c"]
|
2020-11-24 14:33:34 +00:00
|
|
|
|
2020-11-29 04:26:53 +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
|
|
|
|
|
|
|
COPY docker/containers/tactical-meshcentral/entrypoint.sh /
|
|
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
|
2020-11-19 03:42:45 +00:00
|
|
|
EXPOSE 80 443
|
|
|
|
|
2020-11-16 19:28:10 +00:00
|
|
|
ENTRYPOINT [ "/entrypoint.sh" ]
|