Skip to content

Commit

Permalink
updated Dockerfile to run app.js entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
rolando-ebi committed Aug 13, 2018
1 parent 5a62626 commit db62904
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
FROM node:carbon

# Create app directory
WORKDIR /usr/src/app
RUN mkdir /app
WORKDIR /app

# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
ADD src ./src
ADD config ./config
COPY package*.json ./

RUN npm install

# Bundle app source
COPY . .

EXPOSE 3000
CMD [ "npm", "start" ]
CMD ["node", "./src/app.js"]

0 comments on commit db62904

Please sign in to comment.