2018-01-13 00:13:32 -05:00
|
|
|
FROM node:stretch
|
|
|
|
MAINTAINER Lawrence Stubbs <technoexpressnet@gmail.com>
|
|
|
|
|
|
|
|
COPY startmeshcentral.sh /
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y p7zip-full \
|
|
|
|
&& wget -q http://www.7-zip.org/a/lzma1604.7z \
|
|
|
|
&& 7z x lzma1604.7z -olzma1604 \
|
|
|
|
&& cp lzma1604/bin/*.sfx /usr/lib/p7zip/ \
|
|
|
|
&& rm -f lzma1604.7z \
|
|
|
|
&& rm -rf lzma1604 \
|
|
|
|
&& npm install -g forever
|
|
|
|
|
2018-01-13 10:44:22 -05:00
|
|
|
RUN adduser --quiet meshcentral \
|
2018-01-13 00:13:32 -05:00
|
|
|
&& chmod +x /startmeshcentral.sh \
|
2018-01-13 10:44:22 -05:00
|
|
|
&& su - meshcentral \
|
2018-01-13 11:32:17 -05:00
|
|
|
&& cd /home/meshcentral \
|
2018-01-13 10:44:22 -05:00
|
|
|
&& npm install meshcentral node-7z greenlock-cli
|
2018-01-13 00:13:32 -05:00
|
|
|
|
|
|
|
ENV PORT 443
|
|
|
|
ENV REDIRPORT 80
|
|
|
|
|
|
|
|
EXPOSE 80 443 25
|
|
|
|
|
|
|
|
ENTRYPOINT ["/startmeshcentral.sh"]
|