FROM node:14-alpine WORKDIR /home/node/app ENV TACTICAL_DIR /opt/tactical RUN apk add --no-cache bash SHELL ["/bin/bash", "-e", "-o", "pipefail", "-c"] 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) RUN chown -R node:node /home/node COPY docker/containers/tactical-meshcentral/entrypoint.sh / RUN chmod +x /entrypoint.sh EXPOSE 8080 4443 USER node ENTRYPOINT [ "/entrypoint.sh" ]