I've created a index.js file having express and CORS with port 5000, which helps me to interact with that application. In local I'm able to interact with my application. I need help to make that application go live and Running using docker.
const express = require('express');
const mongoose = require('mongoose')
var cors = require('cors')
const port = 5000
require('dotenv').config();
const app = express();
app.use(express.json())
app.use(cors())
app.get('/', (req, res) => {
response.send("Back-end connected");
})
app.listen(port, () => console.log("Listening...!"))
I have no idea how to deploy to the production using docker and make application live.Could please some one help me on this.