forked from Rust-related/RustPython
16 lines
294 B
Docker
16 lines
294 B
Docker
FROM rust:latest as rust
|
|
|
|
WORKDIR /rustpython
|
|
|
|
COPY . .
|
|
|
|
RUN cargo build --release
|
|
|
|
FROM debian:stable-slim
|
|
|
|
COPY --from=rust /rustpython/target/release/rustpython /usr/bin
|
|
COPY --from=rust /rustpython/Lib /usr/lib/rustpython
|
|
ENV RUSTPYTHONPATH /usr/lib/rustpython
|
|
|
|
ENTRYPOINT [ "rustpython" ]
|