|
| 1 | +FROM node:18-bookworm |
| 2 | + |
| 3 | +RUN apt-get update && apt-get install -y \ |
| 4 | + curl \ |
| 5 | + wget \ |
| 6 | + nodejs \ |
| 7 | + npm \ |
| 8 | + ca-certificates \ |
| 9 | + && update-ca-certificates \ |
| 10 | + && rm -rf /var/lib/apt/lists/* |
| 11 | + |
| 12 | +WORKDIR /zombienet/Basilisk-node/launch-configs/fork |
| 13 | + |
| 14 | +RUN wget -q https://github.com/paritytech/zombienet/releases/download/v1.3.128/zombienet-linux-x64 -O /usr/local/bin/zombienet && \ |
| 15 | + chmod +x /usr/local/bin/zombienet |
| 16 | +RUN zombienet version |
| 17 | + |
| 18 | +ARG POLKADOT_SDK_VERSION=latest |
| 19 | + |
| 20 | +RUN mkdir -p /zombienet/polkadot-sdk/target/release |
| 21 | +RUN if [ "$POLKADOT_SDK_VERSION" = "latest" ]; then \ |
| 22 | + DOWNLOAD_URL="https://github.com/paritytech/polkadot-sdk/releases/latest/download"; \ |
| 23 | + else \ |
| 24 | + DOWNLOAD_URL="https://github.com/paritytech/polkadot-sdk/releases/download/$POLKADOT_SDK_VERSION"; \ |
| 25 | + fi && \ |
| 26 | + for binary in polkadot polkadot-execute-worker polkadot-prepare-worker; do \ |
| 27 | + wget -q $DOWNLOAD_URL/$binary \ |
| 28 | + -O /zombienet/polkadot-sdk/target/release/$binary \ |
| 29 | + && chmod +x /zombienet/polkadot-sdk/target/release/$binary \ |
| 30 | + && /zombienet/polkadot-sdk/target/release/$binary --version; \ |
| 31 | + done |
| 32 | + |
| 33 | +ARG BASILISK_BIN_URL=https://github.com/galacticcouncil/Basilisk-node/releases/latest/download |
| 34 | +ARG SCRAPER_URL=https://github.com/galacticcouncil/hydration-node/releases/latest/download |
| 35 | + |
| 36 | +RUN mkdir -p /zombienet/Basilisk-node/target/release |
| 37 | +RUN wget -q $BASILISK_BIN_URL/basilisk -O /zombienet/Basilisk-node/target/release/basilisk && \ |
| 38 | + wget -q $SCRAPER_URL/scraper -O /zombienet/Basilisk-node/target/release/scraper && \ |
| 39 | + chmod +x /zombienet/Basilisk-node/target/release/* |
| 40 | +RUN /zombienet/Basilisk-node/target/release/basilisk --version |
| 41 | + |
| 42 | +COPY . . |
| 43 | + |
| 44 | +RUN npm i |
| 45 | + |
| 46 | +VOLUME /zombienet/Basilisk-node/launch-configs/fork/data |
| 47 | +EXPOSE 9988 |
| 48 | + |
| 49 | +CMD npm start |
0 commit comments