seperate docker deploying server made for ctf's
- install node,npm and docker on server
Docker - sudo apt install docker.io
- run
npm install
- place your challenge/app that you wanted to deploy in server
- open port in server from 49152-65535
- node server.js /path-to-folder-containing-dockerfile
eg: node server.js app/
- var local_port = "to your docker localport"
- var port = "the port where deployer run"
- const docker_name="name of docker"
- var hostname="the host where challenge gona be up"
- delete docker after 15 mins(can be controlled)
[Unit]
Description="node service"
[Service]
User=azureuser
WorkingDirectory=/
ExecStart=/usr/bin/node /path/server.js app/
[Install]
WantedBy=multi-user.target