Skip to content

Commit

Permalink
Have better docker caching (Ride-The-Lightning#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasDorier authored and ShahanaFarooqui committed Feb 25, 2019
1 parent c84c4de commit 3f17991
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Expand Up @@ -4,11 +4,14 @@ RUN apk add --no-cache tini

WORKDIR /RTL

COPY . /RTL
COPY package.json /RTL/package.json
COPY package-lock.json /RTL/package-lock.json

# Install dependencies
RUN npm install

COPY . /RTL

EXPOSE 3000

ENTRYPOINT ["/sbin/tini", "-g", "--"]
Expand Down
5 changes: 5 additions & 0 deletions Dockerfile.arm32v7
Expand Up @@ -11,9 +11,14 @@ WORKDIR /RTL

COPY . /RTL

COPY package.json /RTL/package.json
COPY package-lock.json /RTL/package-lock.json

# Install dependencies
RUN npm install

COPY . /RTL

FROM arm32v7/node:10-jessie-slim

WORKDIR /RTL
Expand Down

0 comments on commit 3f17991

Please sign in to comment.