forked from matrix/element-web
Add some layers to cache installed dependencies at build time
This commit is contained in:
parent
045b0b9889
commit
e47fae034a
10
Dockerfile
10
Dockerfile
|
@ -1,13 +1,15 @@
|
||||||
# Builder
|
# Builder
|
||||||
FROM node:alpine as builder
|
FROM node:alpine as builder
|
||||||
|
|
||||||
COPY . /src
|
RUN apk add --no-cache git
|
||||||
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
RUN apk add --no-cache git \
|
COPY package.json /src/package.json
|
||||||
&& npm install \
|
RUN npm install
|
||||||
&& npm run build
|
|
||||||
|
COPY . /src
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
|
|
||||||
# App
|
# App
|
||||||
|
|
Loading…
Reference in New Issue