ajout Dockerfile server
This commit is contained in:
parent
8cb2ae4892
commit
e77032154c
1 changed files with 20 additions and 0 deletions
20
Dockerfiles/server/Dockerfile
Normal file
20
Dockerfiles/server/Dockerfile
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# Choosing the image to use
|
||||||
|
FROM node:alpine
|
||||||
|
|
||||||
|
# Installing required libraries
|
||||||
|
RUN apk add npm && \
|
||||||
|
mkdir server && \
|
||||||
|
cd server && \
|
||||||
|
npm install express && \
|
||||||
|
npm install yargs && \
|
||||||
|
npm install systeminformation && \
|
||||||
|
wget http://homepages.laas.fr/smedjiah/tmp/server.js
|
||||||
|
|
||||||
|
# set entry point for emulator gatekeeper (needed for compatibility with vim-emu datacenters)
|
||||||
|
#ENV VIM_EMU_CMD "node /server/server.js --local_ip '127.0.0.1' --local_port '8080' --local_name 'srv'" #uncomment when on ContainerNet datacenter
|
||||||
|
#ENV VIM_EMU_CMD "TODO at startup"
|
||||||
|
#ENV VIM_EMU_CMD_STOP "TODO at shutdown"
|
||||||
|
|
||||||
|
# CMD should always point to /bin/bash to not block the emulator (sh for node:alpine)
|
||||||
|
CMD node /server/server.js --local_ip '127.0.0.1' --local_port '8080' --local_name 'srv' #comment when on ContainerNet datacenter
|
||||||
|
#CMD /bin/sh #uncomment when on ContainerNet datacenter
|
Loading…
Reference in a new issue