# Choosing the image to use FROM node:buster # Installing required libraries RUN apt-get update && \ apt-get install -y net-tools iputils-ping && \ mkdir server && \ cd server && \ npm install express && \ npm install yargs && \ npm install systeminformation && \ wget http://homepages.laas.fr/smedjiah/tmp/server.js #ENV VIM_EMU_CMD "node /server/server.js --local_ip '127.0.0.1' --local_port '8080' --local_name 'srv'" ENV LAUNCHER "node /server/server.js --local_ip '127.0.0.1' --local_port '8080' --local_name 'srv'" #ENV VIM_EMU_CMD_STOP "TODO at shutdown" RUN echo "nohup $LAUNCHER &" > /server/entrypoint.sh RUN echo "/bin/bash" >> /server/entrypoint.sh && chmod 777 /server/entrypoint.sh # Mandatory entrypoint in containernet CMD ./server/entrypoint.sh