File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,22 @@ ENV CARGO_INSTALL_ROOT="/workdir"
1010# Newer rust needed due to let...else feature
1111RUN apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community rust cargo
1212
13- RUN apk --no-cache add musl-dev git
13+ RUN apk --no-cache add musl-dev
1414
1515ADD https://github.com/RustPython/RustPython/archive/refs/tags/v$RUST_PYTHON_VERSION.tar.gz /tmp/v$RUST_PYTHON_VERSION.tar.gz
16+ ADD https://github.com/RustPython/__doc__/archive/d927debd491e4c45b88e953e6e50e4718e0f2965.tar.gz /tmp/rp__doc__.tar.gz
17+
18+ RUN mkdir /workdir/rp__doc__/ && tar --strip-components=1 -C /workdir/rp__doc__/ -xzf /tmp/rp__doc__.tar.gz
1619
1720RUN tar --strip-components=1 -C /workdir -xzf /tmp/v$RUST_PYTHON_VERSION.tar.gz
1821
19- RUN cargo fetch --locked
22+ # Remove the git mode that triggers an error on armv6 and armv7
23+ # Ref: https://github.com/rust-lang/cargo/issues/2808 (failed to mmap. Could not write data: Out of memory; class=Os (2))
24+ RUN sed -i 's#{ git = .*#{ path = "/workdir/rp__doc__/" }#' /workdir/derive-impl/Cargo.toml
25+
26+ RUN cargo fetch
2027
21- RUN cargo build --features freeze-stdlib --release --locked --offline --bin rustpython
28+ RUN uname -m && cargo build --features freeze-stdlib --release --locked --offline --bin rustpython
2229
2330FROM alpine:3.17
2431
You can’t perform that action at this time.
0 commit comments