Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NB #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

NB #1

wants to merge 2 commits into from

Conversation

shanwangzhe
Copy link

There are two ways to start this project. But the way with docker, you should add the node_modules, or there will have a problem "Cannot find module 'express'".

COPY package.json /usr/src/app/
RUN npm install
COPY . /usr/src/app

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should include the missing install command in the Dockerfile.

@shanwangzhe
Copy link
Author

shanwangzhe commented Feb 16, 2017 via email

@rouvoy
Copy link
Contributor

rouvoy commented Feb 16, 2017

Avez-vous regardé à différents tutoriels en ligne qui expliquent comment déployer une application NodeJS+MongoDB avec Docker ?

@shanwangzhe
Copy link
Author

Oui, j'ai vu plusieurs tutoriels. Ils font presque la même chose. Par exemple ,dans cette tutoriel
https://medium.com/@sunnykay/docker-development-workflow-node-express-mongo-4bb3b1f7eb1e#.a1vutqcuw
Mais il n'a pas l'error que j'ai vu. En fait, pour cette error, même si j'ajoute "RUN npm install express" directement dans le Dockerfile, ça ne pass pas non plus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants