Skip to content

Commit

Permalink
move python venv into script
Browse files Browse the repository at this point in the history
  • Loading branch information
emlowe committed Jan 7, 2025
1 parent 4743570 commit 43569f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 0 additions & 3 deletions resources/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion resources/alpine/build-alpine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 43569f7

Please sign in to comment.