Install Docker and run hello-world
- Create a folder cmd, that contains two files: Dockerfile and index.js.
- To index.js, add printing the first command-line parameter in format "Hello ${param}!".
- Write a Dockerfile that runs that file (as an entrypoint).
- Add a command-line parameter to the docker command execution and make sure it prints "Hello ${param}!", e.g. "Hello world!".
- Create a folder cmd, that contains three files: Dockerfile, package.json and server.js.
- Add express or koa to package.json.
- Install npm dependencies
- Make server.js answer to endpoint / and return "Hello world".
- Add node, package.json and server.js to Dockerfile
- Run server using docker.
Add docker-compose.yml to exercise 2 and run the server through that.