diff --git a/resources/alpine/Dockerfile b/resources/alpine/Dockerfile index 15d2698e..fc8a2530 100644 --- a/resources/alpine/Dockerfile +++ b/resources/alpine/Dockerfile @@ -4,7 +4,4 @@ RUN apk add git curl python3 openssl openssl-dev perl linux-headers make gcc mus RUN curl --proto '=https' --tlsv1.2 -sSf -o rustup https://sh.rustup.rs RUN sh ./rustup -y WORKDIR /root/clvm_tools_rs -RUN python3 -m venv venv -ENV PATH="/root/clvm_tools_rs/venv/bin:$PATH" -RUN pip install maturin[patchelf] COPY ./build-alpine.sh /root diff --git a/resources/alpine/build-alpine.sh b/resources/alpine/build-alpine.sh index 4e6d9e47..947be356 100755 --- a/resources/alpine/build-alpine.sh +++ b/resources/alpine/build-alpine.sh @@ -2,5 +2,7 @@ . $HOME/.cargo/env cd /root/clvm_tools_rs -source venv/bin/activate +python3 -m venv venv +source ./venv/bin/activate +pip install maturin[patchelf] CC=gcc maturin build --release --strip --compatibility musllinux_1_1 --target x86_64-unknown-linux-musl