22 lines
688 B
Docker
22 lines
688 B
Docker
# Choosing the image to use
|
|
FROM node:buster
|
|
|
|
# Installing required libraries
|
|
RUN apt-get update && \
|
|
apt-get install -y net-tools iputils-ping && \
|
|
mkdir mydir && \
|
|
cd mydir && \
|
|
npm install express && \
|
|
npm install yargs && \
|
|
npm install systeminformation && \
|
|
npm install request && \
|
|
wget http://homepages.laas.fr/smedjiah/tmp/device.js
|
|
|
|
ENV LAUNCHER "node /mydir/device.js --local_ip '127.0.0.1' --local_port 9001 --local_name 'dev1' --remote_ip '127.0.0.1' --remote_port 8282 --remote_name 'gwf1' --send_period 3000"
|
|
|
|
ENV VIM_EMU_CMD "nohup $LAUNCHER &"
|
|
#ENV VIM_EMU_CMD_STOP "TODO at shutdown"
|
|
|
|
# Mandatory entrypoint in containernet
|
|
CMD /bin/bash
|
|
|