problems running Docker container in Cypress problems running Docker container in Cypress docker docker

problems running Docker container in Cypress


You should copy after npm install so that node_modules are copyed tooThis should work

FROM cypress/included:6.8.0WORKDIR /appRUN npm installCOPY . /appRUN $(npm bin)/ cypress  verifyRUN $(npm bin)/cypress 


Many thanks to everyone who took a moment to take a look at my problem. I rewrote the docker-compose.yml file code again and it now works perfectly. If this can help anyone in the future here is the corrected code.

FROM cypress/included:6.8.0WORKDIR /appCOPY . /appRUN npm installRUN $(npm bin)/cypress verifyRUN $(npm bin)/cypress