Skip to content
This repository was archived by the owner on Feb 28, 2020. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions app/templates/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]