FROM rust:1.59-slim-buster
RUN apt-get update && apt-get install -y python3-dev python3-pip valgrind
RUN pip3 install --upgrade pip
RUN pip3 install auditwheel cached_property pytest pytest-asyncio
RUN rustup target add x86_64-unknown-linux-gnu
# RUN pip3 install cargo-zigbuild
COPY askar-bbs ./askar-bbs
COPY askar-crypto ./askar-crypto
COPY src ./src
COPY tests ./tests
COPY Cargo.toml ./
# RUN cargo zigbuild --release --target x86_64-unknown-linux-gnu.2.17
RUN cargo build
COPY test.sh ./