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