mirror of https://github.com/vector-im/riot-web
Add some layers to cache installed dependencies at build time
parent
045b0b9889
commit
e47fae034a
10
Dockerfile
10
Dockerfile
|
@ -1,13 +1,15 @@
|
|||
# Builder
|
||||
FROM node:alpine as builder
|
||||
|
||||
COPY . /src
|
||||
RUN apk add --no-cache git
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
RUN apk add --no-cache git \
|
||||
&& npm install \
|
||||
&& npm run build
|
||||
COPY package.json /src/package.json
|
||||
RUN npm install
|
||||
|
||||
COPY . /src
|
||||
RUN npm run build
|
||||
|
||||
|
||||
# App
|
||||
|
|
Loading…
Reference in New Issue