Have better docker caching (#63)

This commit is contained in:
Nicolas Dorier 2019-02-25 19:49:49 +09:00 committed by ShahanaFarooqui
parent c84c4de38f
commit 3f1799195d
2 changed files with 9 additions and 1 deletions

View File

@ -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", "--"]

View File

@ -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