From c65b5292d945a22163a8d351abc2310a32394afd Mon Sep 17 00:00:00 2001 From: Joy Chang Date: Mon, 2 Oct 2017 19:38:28 -0500 Subject: [PATCH] reorder to accommadate devDependencies --- app/templates/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/templates/Dockerfile b/app/templates/Dockerfile index 6ac7608..6ee1f93 100644 --- a/app/templates/Dockerfile +++ b/app/templates/Dockerfile @@ -1,16 +1,16 @@ FROM ibmcom/ibmnode -ENV NODE_ENV production -ENV PORT 3000 - WORKDIR "/app" # Install app dependencies COPY package.json /app/ -RUN cd /app; npm install +RUN cd /app; npm install; npm prune --production # Bundle app source COPY . /app +ENV NODE_ENV production +ENV PORT 3000 + EXPOSE 3000 CMD ["npm", "start"] \ No newline at end of file