forked from w3f/polkadot-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (22 loc) · 755 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
FROM parity/subkey:2.0.0 AS subkey
FROM parity/polkadot:v0.7.29 AS polkadot
FROM ubuntu:18.04
RUN apt update && \
apt install --no-install-recommends -y \
ca-certificates \
curl \
jq \
libssl1.0.0 \
libssl-dev
ENV KUBECTL_VERSION=v1.18.1
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl && \
chmod a+x kubectl && \
mv kubectl /usr/local/bin
WORKDIR /app
COPY --from=polkadot /usr/local/bin/polkadot .
COPY --from=subkey /usr/local/bin/subkey /usr/local/bin/
RUN ./polkadot build-spec --chain dev > ./base_chainspec_dev.json && \
cat ./base_chainspec_dev.json | jq "del(.chainType)" > ./base_chainspec.json && \
rm ./polkadot
COPY scripts/ .
COPY chainspecs/ .