diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..62fb047 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM node:latest +LABEL maintainer "Sthope " + +ENV DEBIAN_FRONTEND noninteractive +ARG MC_VERSION=unknown + +RUN apt-get -qy update \ + && apt-get -qy dist-upgrade \ + && apt-get -qy install unzip \ + && apt-get -y clean \ + && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + +# https://www.npmjs.com/package/meshcommander +RUN mkdir /meshcommander \ + && cd /meshcommander \ + && npm install meshcommander \ + && echo -n "Meshcommander version: " \ + && npm info meshcommander version + +EXPOSE 3000 + +WORKDIR /meshcommander/node_modules/meshcommander +CMD ["node", "meshcommander", "--any"] +# "--any" binds on all interfaces, not only 127.0.0.1 \ No newline at end of file