Skip to content

Commit

Permalink
chore(examples): make node example services build faster
Browse files Browse the repository at this point in the history
  • Loading branch information
edvald committed Sep 25, 2018
1 parent 47becff commit b1f5995
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
5 changes: 3 additions & 2 deletions examples/hello-world/services/hello-container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ FROM node:9-alpine

ENV PORT=8080
EXPOSE ${PORT}

ADD . /app
WORKDIR /app

ADD package.json /app
RUN npm install

ADD . /app

CMD ["npm", "start"]
5 changes: 3 additions & 2 deletions examples/local-tls/services/node-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ FROM node:9-alpine

ENV PORT=8080
EXPOSE ${PORT}

ADD . /app
WORKDIR /app

ADD package.json /app
RUN npm install

ADD . /app

CMD ["npm", "start"]
5 changes: 3 additions & 2 deletions examples/remote-k8s/services/node-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ FROM node:9-alpine

ENV PORT=8080
EXPOSE ${PORT}

ADD . /app
WORKDIR /app

ADD package.json /app
RUN npm install

ADD . /app

CMD ["npm", "start"]
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ FROM node:9-alpine

ENV PORT=8080
EXPOSE ${PORT}

ADD . /app
WORKDIR /app

ADD package.json /app
RUN npm install

ADD . /app

CMD ["npm", "start"]
5 changes: 3 additions & 2 deletions examples/simple-project/services/node-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ FROM node:9-alpine

ENV PORT=8080
EXPOSE ${PORT}

ADD . /app
WORKDIR /app

ADD package.json /app
RUN npm install

ADD . /app

CMD ["npm", "start"]

0 comments on commit b1f5995

Please sign in to comment.