add nginx authentication to docker container

Job ID: 35411101

Budget: $10 – $30 USD

I have the following Dockerfile:

FROM node:alpine
WORKDIR /usr/app
RUN npm init -f
COPY hello.js .
RUN npm install http
ENTRYPOINT ["node", "hello.js"]

here is the content of hello.js:

const http = require('http');
http.createServer((request, response) => {
response.writeHead(200, {
'Content-Type': 'text/plain'
});
response.write('Hello, World!\n');
response.end();
}).listen(80);

I need the Dockerfile modified using nginx to require http authentication (basic auth) on port 80 with the given sample service above.

The estimated time to complete this project is 15 minutes and the budget is $10. An extra deadline of 2 hours will be given in case you are not able to complete within 15 minutes.
Related categories: Nginx Docker