mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-10 14:09:43 -05:00
docker image
This commit is contained in:
26
docker/Dockerfile
Normal file
26
docker/Dockerfile
Normal file
@@ -0,0 +1,26 @@
|
||||
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
|
||||
|
||||
RUN npm install greenlock-cli \
|
||||
&& chmod +x /startmeshcentral.sh \
|
||||
&& adduser --quiet meshcentral
|
||||
|
||||
RUN su - meshcentral \
|
||||
&& npm install meshcentral node-7z
|
||||
|
||||
ENV PORT 443
|
||||
ENV REDIRPORT 80
|
||||
|
||||
EXPOSE 80 443 25
|
||||
|
||||
ENTRYPOINT ["/startmeshcentral.sh"]
|
||||
Reference in New Issue
Block a user