-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile_e2e
37 lines (27 loc) · 937 Bytes
/
Dockerfile_e2e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# The Licensed Work is (c) 2022 Sygma
# SPDX-License-Identifier: LGPL-3.0-only
FROM --platform=linux/amd64 paritytech/ci-linux:production as builder
WORKDIR /code
COPY . .
RUN cargo build --release
FROM --platform=linux/amd64 node:18.14.2
WORKDIR /node
# Copy the node binary.
COPY --from=builder /code/target/release/standalone-node-template .
# setup and launch script
COPY --from=builder /code/scripts/ ./scripts
RUN chmod +x ./scripts/e2e_setup.sh
# Install root certs, see: https://github.com/paritytech/substrate/issues/9984
RUN apt update && \
apt install -y ca-certificates && \
update-ca-certificates && \
apt remove ca-certificates -y && \
rm -rf /var/lib/apt/lists/*
# JSON-RPC WS server
EXPOSE 9944
# JSON-RPC HTTP server
EXPOSE 9933
ARG mpc_address
ENV MPCADDR $mpc_address
RUN ["./scripts/e2e_setup.sh"]
ENTRYPOINT ["./standalone-node-template", "--dev", "--rpc-external", "--base-path", "./db/"]