-
Notifications
You must be signed in to change notification settings - Fork 2
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
base: master
Are you sure you want to change the base?
NB #1
Conversation
COPY package.json /usr/src/app/ | ||
RUN npm install | ||
COPY . /usr/src/app | ||
|
There was a problem hiding this comment.
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.
Bonjour,
Mais il y a déjà un npm install dans le Dockerfile. Je ne comprends pas pourquoi on besoin deux?
Cordialement,
XU Xiaofan
发自我的 iPhone
… 在 2017年2月15日,下午11:12,Romain Rouvoy ***@***.***> 写道:
@rouvoy commented on this pull request.
In Dockerfile:
> @@ -0,0 +1,10 @@
+FROM node:boron
+
+RUN mkdir -p /usr/src/app
+WORKDIR /usr/src/app
+
+COPY package.json /usr/src/app/
+RUN npm install
+COPY . /usr/src/app
+
You should include the missing install command in the Dockerfile.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Avez-vous regardé à différents tutoriels en ligne qui expliquent comment déployer une application NodeJS+MongoDB avec Docker ? |
Oui, j'ai vu plusieurs tutoriels. Ils font presque la même chose. Par exemple ,dans cette tutoriel |
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'".