Skip to content

Commit 207b5cc

Browse files
authored
Add react GUI to boost docker (#793)
1 parent 847ccc9 commit 207b5cc

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
docker/devnet/data
22
react/node_modules
3+
react/build
34
# filecoin-ffi installation
45
build/.filecoin-install
56
extern/filecoin-ffi/.install-filcrypto

docker/devnet/boost/Dockerfile.source

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44
ARG LOTUS_TEST_IMAGE=filecoin/lotus-test:latest
55
FROM ${LOTUS_TEST_IMAGE} as lotus-dev
66
#########################################################################################
7+
FROM node:16.16-alpine3.15 AS react-builder
8+
9+
WORKDIR /src
10+
COPY react /src/react
11+
COPY gql /src/gql
12+
13+
RUN npm_config_legacy_peer_deps=yes npm ci --no-audit --prefix react&& \
14+
npm run --prefix react build
15+
#########################################################################################
716
FROM golang:1.18-bullseye as builder
817

918
RUN apt update && apt install -y \
@@ -31,6 +40,8 @@ RUN make build/.filecoin-install
3140
##############################################
3241
COPY . /go/src
3342
##############################################
43+
COPY --from=react-builder /src/react/build /go/src/react/build
44+
3445
RUN --mount=type=cache,target=/root/.cache/go-build \
3546
--mount=type=cache,target=/go/pkg/mod \
3647
make debug

0 commit comments

Comments
 (0)