Error on Deploying

Issues information

 internal/modules/cjs/loader.js:888

   throw err;

   ^

 

 Error: Cannot find module '/src/index.js'

     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)

     at Function.Module._load (internal/modules/cjs/loader.js:730:27)

     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)

     at internal/main/run_main_module.js:17:47 {

   code: 'MODULE_NOT_FOUND',

   requireStack: []

 }
  • OS:
  • databases:
  • Programming language and version:
  • Link to your project on Github/Gitlab:

Describe here your issue
my main file is src/index.js
Dockerfile content (if any)

FROM node:14

# Create app directory
WORKDIR src

# 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 ./

RUN npm install
# If you are building your code for production
# RUN npm ci --only=production

# Bundle app source
COPY . .

EXPOSE 8080
CMD [ "node", "index.js" ]

specify here your dockerfile content

Hello,
could you send me a screenshot of your project directories architecture ? Looks like a path issue.