- Clone this repo.
git clone git@github.com:devansh016/http-server-assignment.git
- Build the Docker Image
docker build -t optimise-http-server .
- Run the Docker Image
docker run -p 8080:8080 --memory=1500m --cpus=2 optimise-http-server
- The application will be running on port 8080.
Used fs.createReadStream instead of fs.readFile to optimise the performance as the file are large in size ~100MB.