No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 509B

12345678910111213141516171819202122
  1. # Choosing the image to use
  2. FROM node:buster
  3. # Installing required libraries
  4. RUN apt-get update && \
  5. apt-get install -y net-tools iputils-ping python-pip && \
  6. pip install flask && \
  7. pip install requests && \
  8. mkdir mydir && \
  9. cd mydir
  10. COPY bootstrap_server.py /mydir
  11. SHELL ["/bin/bash", "-c"]
  12. RUN echo "nohup python /mydir/bootstrap_server.py &" > start.sh && \
  13. echo "/bin/bash" >> start.sh && \
  14. chmod 777 start.sh
  15. # Mandatory entrypoint in containernet
  16. ENTRYPOINT ./start.sh