I have been learning docker for now, i made a docker file which is like this.
FROM node:10
# Create app directory
WORKDIR /app
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json /app/
RUN npm install
# If you are building your code for production
# RUN npm ci --only=production
# Bundle app source
ADD ./* /app/
EXPOSE 8080
CMD [ "npm", "start" ]
And my file directory looks like this,
My server is working fine with my local machine, however, when running with docker container it's throwing an error.
The error is:
Can someone help me with it ?