Updated Dockerfile
This commit is contained in:
parent
31be9ea891
commit
21985922c2
11
Dockerfile
11
Dockerfile
|
|
@ -8,6 +8,14 @@ WORKDIR /usr/src/app
|
|||
# Bundle app source
|
||||
COPY . /usr/src/app
|
||||
|
||||
## Install app dependencies
|
||||
RUN npm install
|
||||
|
||||
## tell the port number the container should expose
|
||||
EXPOSE 3000
|
||||
|
||||
## run the application
|
||||
CMD ["npm", "run", "dev"]
|
||||
|
||||
## our base image
|
||||
#FROM node:6.9.1
|
||||
|
|
@ -24,8 +32,7 @@ COPY . /usr/src/app
|
|||
## Bundle app source
|
||||
#COPY . /usr/src/app
|
||||
#
|
||||
## tell the port number the container should expose
|
||||
#EXPOSE 3000
|
||||
|
||||
#
|
||||
## run the application
|
||||
#CMD ["nodemon", "app.js"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue