File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 1
1
docker /devnet /data
2
2
react /node_modules
3
+ react /build
3
4
# filecoin-ffi installation
4
5
build /.filecoin-install
5
6
extern /filecoin-ffi /.install-filcrypto
Original file line number Diff line number Diff line change 4
4
ARG LOTUS_TEST_IMAGE=filecoin/lotus-test:latest
5
5
FROM ${LOTUS_TEST_IMAGE} as lotus-dev
6
6
#########################################################################################
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
+ #########################################################################################
7
16
FROM golang:1.18-bullseye as builder
8
17
9
18
RUN apt update && apt install -y \
@@ -31,6 +40,8 @@ RUN make build/.filecoin-install
31
40
##############################################
32
41
COPY . /go/src
33
42
##############################################
43
+ COPY --from=react-builder /src/react/build /go/src/react/build
44
+
34
45
RUN --mount=type=cache,target=/root/.cache/go-build \
35
46
--mount=type=cache,target=/go/pkg/mod \
36
47
make debug
You can’t perform that action at this time.
0 commit comments