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