First and foremost, i’m new to Docker and containerizing application.
Recently, i created a docker image using nodejs web application. Below the project structure and docker file.
The built image ran successfully, and i could access app from browser ( configured to localhost with available port) . But the issue here is i’m not able to perform any action from the browser window, also i don’t see any log for the associated container id.
The container source folder contains all the necessary dependency file and module.
FYI… This application is a custom chat bot web app which uses various modules like socket.io , convo.js , etc… and works perfectly fine outside docker.
Project Structure :
Docker File :
COPY package.json /app
RUN npm install
COPY . .
COPY relative /relative
Please let us know how i could come out this issue.