2022-03-14 04:20:41 +00:00
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
2022-02-02 03:15:08 +00:00
|
|
|
RUN npm install meshcentral@$(grep -o 'MESH_VER.*' /tmp/settings.py | cut -d'"' -f 2)
|
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" ]
|