FROM rust:1.56-bullseye
WORKDIR /app
# install liblzma, and libclang for argonautica (sigh)
RUN apt-get update
RUN apt-get install -y build-essential liblzma-dev libclang-dev
RUN rustup component add clippy
COPY Cargo.* Makefile ./
COPY src ./src
COPY tests ./tests
RUN make test