This is the repository for simple Docker exercises. You can find the answers under branch answers.
- Add two files into folder cmd/: 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!".
- Add three files into folder server/: Dockerfile, package.json and app.js.
- Add koa to package.json.
- Install npm dependencies.
- Make server.js answer to endpoint / and return "Hello world".
- Add node, package.json and app.js to Dockerfile.
- Run server using Docker.
- Create docker-compose.yml that includes postgres database.
- Run backend using Docker Compose.