Add Dockerfile
This commit is contained in:
parent
314cb2eff2
commit
92a8dec9ba
24
Dockerfile
Normal file
24
Dockerfile
Normal file
@ -0,0 +1,24 @@
|
||||
FROM node:latest
|
||||
LABEL maintainer "Sthope <rjs.ricardosilva@gmail.com>"
|
||||
|
||||
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
|
Loading…
x
Reference in New Issue
Block a user