From 3f1799195d1a007b9f62001da51587d246b7cdb8 Mon Sep 17 00:00:00 2001 From: Nicolas Dorier Date: Mon, 25 Feb 2019 19:49:49 +0900 Subject: [PATCH] Have better docker caching (#63) --- Dockerfile | 5 ++++- Dockerfile.arm32v7 | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index fc0e37d8..321c17e0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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", "--"] diff --git a/Dockerfile.arm32v7 b/Dockerfile.arm32v7 index bdfb1a49..f25cabfd 100644 --- a/Dockerfile.arm32v7 +++ b/Dockerfile.arm32v7 @@ -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