2021-12-12 02:57:20 -08:00
|
|
|
# syntax=docker.io/docker/dockerfile:1.3@sha256:42399d4635eddd7a9b8a24be879d2f9a930d0ed040a61324cfdf59ef1357b3b2
|
2021-10-26 03:02:59 -07:00
|
|
|
|
|
|
|
# Derivative of ethereum/Dockerfile, look there for an explanation on how it works.
|
2022-02-08 00:55:10 -08:00
|
|
|
FROM node:16-alpine@sha256:f21f35732964a96306a84a8c4b5a829f6d3a0c5163237ff4b6b8b34f8d70064b
|
2021-10-26 03:02:59 -07:00
|
|
|
|
|
|
|
RUN mkdir -p /app
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
ADD . .
|
|
|
|
|
2022-02-08 00:55:10 -08:00
|
|
|
# these are only needed if you are using the local version of the sdk (npm i ../sdk/js)
|
|
|
|
# RUN --mount=type=cache,uid=1000,gid=1000,target=/home/node/.npm \
|
|
|
|
# npm ci --prefix ethereum
|
|
|
|
# RUN --mount=type=cache,uid=1000,gid=1000,target=/home/node/.npm \
|
|
|
|
# npm ci --prefix sdk/js
|
|
|
|
# RUN --mount=type=cache,uid=1000,gid=1000,target=/home/node/.npm \
|
|
|
|
# npm run build --prefix sdk/js
|
2021-10-26 03:02:59 -07:00
|
|
|
|
|
|
|
|
|
|
|
WORKDIR ./bridge_ui
|
|
|
|
|
|
|
|
RUN --mount=type=cache,uid=1000,gid=1000,target=/home/node/.npm \
|
|
|
|
npm ci
|
|
|
|
|
|
|
|
RUN --mount=type=cache,uid=1000,gid=1000,target=/home/node/.npm \
|
|
|
|
npm i serve
|
|
|
|
|
|
|
|
RUN --mount=type=cache,uid=1000,gid=1000,target=/home/node/.npm \
|
|
|
|
npm run build
|
|
|
|
|