This is the code I ran to try to build the container.
docker build -t mynode-app:1.0 .
This is my server.js file.
const express = require('express');
const app = express();
app.get('/', (req,res)=>{
res.send("welcome my boy to the app");
});
app.listen(3000, function (){
console.log("app listening on port 3000");
});
This is the package.json file that has dependencies.
{
"name": "my-app",
"version": "1.0",
"dependencies": {
"express": "4.18.2"
}
}