Skip to content
This repository was archived by the owner on Feb 28, 2020. It is now read-only.

Commit 641fed1

Browse files
author
Nana Amfo
authored
Merge pull request #32 from ibm-developer/dev-dep
reorder to accommadate devDependencies
2 parents c17bcee + c65b529 commit 641fed1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/templates/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
FROM ibmcom/ibmnode
22

3-
ENV NODE_ENV production
4-
ENV PORT 3000
5-
63
WORKDIR "/app"
74

85
# Install app dependencies
96
COPY package.json /app/
10-
RUN cd /app; npm install
7+
RUN cd /app; npm install; npm prune --production
118

129
# Bundle app source
1310
COPY . /app
1411

12+
ENV NODE_ENV production
13+
ENV PORT 3000
14+
1515
EXPOSE 3000
1616
CMD ["npm", "start"]

0 commit comments

Comments
 (0)