icds/Dockerfiles/forContainerNet/server/Dockerfile
2021-01-01 13:26:19 +01:00

27 lines
707 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 python3 python3-pip && \
pip3 install flask && \
pip3 install requests && \
mkdir mydir && \
cd mydir && \
npm install express && \
npm install yargs && \
npm install systeminformation && \
npm install request && \
wget http://homepages.laas.fr/smedjiah/tmp/server.js
COPY bootstrap_client.py /mydir
SHELL ["/bin/bash", "-c"]
RUN echo "nohup python3 /mydir/bootstrap_client.py &" > start.sh && \
echo "/bin/bash" >> start.sh && \
chmod 777 start.sh
# Mandatory entrypoint in containernet
ENTRYPOINT ./start.sh