mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2025-02-21 22:11:54 +01:00
Have better docker caching (#63)
This commit is contained in:
parent
c84c4de38f
commit
3f1799195d
2 changed files with 9 additions and 1 deletions
|
@ -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", "--"]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue