forked from maxsam4/fork-off-substrate
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
33 lines (23 loc) · 829 Bytes
/
Dockerfile
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
FROM ubuntu:20.04
ARG SUBWASM_VERSION=0.14.1
RUN apt-get update && apt-get upgrade -yq
RUN apt-get install -y wget curl bsdmainutils iputils-ping && \
apt-get -y autoclean
RUN wget https://github.com/chevdor/subwasm/releases/download/v${SUBWASM_VERSION}/subwasm_linux_amd64_v${SUBWASM_VERSION}.deb -O subwasm.deb && \
dpkg -i subwasm.deb && \
subwasm --version && \
rm subwasm.deb
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash
RUN apt install nodejs && npm install -g npm
RUN node -v; npm -v;
RUN useradd -m -u 1000 -U -s /bin/sh forker && \
mkdir -p /data && \
chown -R forker:forker /data
COPY . .
RUN npm install
# USER forker
ENV HTTP_RPC_ENDPOINT=http://localhost::9933
ENV FORK_CHUNKS_LEVEL=1
ENV QUICK_MODE=false
VOLUME [ "/data" ]
ENTRYPOINT [ "./scripts/docker-start.sh" ]