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
|
|
|
|
|
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
|
|
|
|
2022-01-16 19:13:27 +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
|
|
|
|
|
2022-01-16 19:13:27 +00:00
|
|
|
EXPOSE 8080 4443
|
|
|
|
|
|
|
|
USER node
|
2020-11-19 03:42:45 +00:00
|
|
|
|
2020-11-16 19:28:10 +00:00
|
|
|
ENTRYPOINT [ "/entrypoint.sh" ]
|