2021-12-12 02:57:20 -08:00
|
|
|
# syntax=docker.io/docker/dockerfile:1.3@sha256:42399d4635eddd7a9b8a24be879d2f9a930d0ed040a61324cfdf59ef1357b3b2
|
2021-05-25 00:51:49 -07:00
|
|
|
|
|
|
|
# Derivative of ethereum/Dockerfile, look there for an explanation on how it works.
|
2021-08-17 15:06:38 -07:00
|
|
|
FROM node:16-alpine@sha256:004dbac84fed48e20f9888a23e32fa7cf83c2995e174a78d41d9a9dd1e051a20
|
2021-05-25 00:51:49 -07:00
|
|
|
|
|
|
|
RUN mkdir -p /app
|
|
|
|
WORKDIR /app
|
|
|
|
|
2021-09-03 04:29:28 -07:00
|
|
|
ADD package.json .
|
|
|
|
ADD package-lock.json .
|
|
|
|
RUN --mount=type=cache,uid=1000,gid=1000,target=/home/node/.npm \
|
|
|
|
npm ci
|
|
|
|
|
2021-05-25 00:51:49 -07:00
|
|
|
ADD . .
|
|
|
|
|
|
|
|
|
2021-09-03 04:29:28 -07:00
|
|
|
RUN --mount=type=cache,uid=1000,gid=1000,target=/home/node/.npm \
|
|
|
|
npm run build
|