From bf3ca7ae42e768c339a0c49d645ed7d03ac33af2 Mon Sep 17 00:00:00 2001 From: Nikola Slavnic Date: Wed, 7 Sep 2022 15:39:58 +0200 Subject: [PATCH] Add docker image to run pytezos and tezos node from a single image --- Dockerfile.singleimage | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile.singleimage diff --git a/Dockerfile.singleimage b/Dockerfile.singleimage new file mode 100644 index 0000000..60fc6a0 --- /dev/null +++ b/Dockerfile.singleimage @@ -0,0 +1,17 @@ +FROM ubuntu:22.04 +WORKDIR /tezos +RUN apt update && apt install -y wget python3-pip libsodium-dev libsecp256k1-dev libgmp-dev +RUN wget -nv "https://raw.githubusercontent.com/zcash/zcash/master/zcutil/fetch-params.sh" \ + && export OSTYPE=linux \ + && sed '/SAPLING_SPROUT_GROTH16_NAME/d; /progress/d; /retry-connrefused/d' fetch-params.sh | sh \ + && rm fetch-params.sh +ARG TARGETPLATFORM +ARG TAG=v14.0-1 +RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then EXEC_NAME="tezos-node-arm64"; else EXEC_NAME="tezos-node"; fi \ + && cd /usr/local/bin \ + && wget -nv "https://github.com/serokell/tezos-packaging/releases/download/$TAG/$EXEC_NAME" -O "tezos-node" \ + && chmod +x tezos-node +RUN pip install pytest==7.1.2 pytezos==3.6.1 +WORKDIR /app +ENV SANDBOX_TYPE=PROCESS +