mise a jour

This commit is contained in:
Abdel Kader Chabi Sika Boni 2020-12-30 16:31:30 +01:00
parent 206d6fbc76
commit 3136cd8e36

View file

@ -0,0 +1,22 @@
# 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