# Dockerfile for both lox-new and troll-patrol

FROM rust:1.93.0
RUN apt update -y && apt upgrade -y
RUN apt install -y numactl
WORKDIR /home/lox
ADD crates/ ./crates/
ADD Cargo.toml Cargo.toml
ADD setup_dependencies.sh setup_dependencies.sh
RUN ./setup_dependencies.sh
WORKDIR /home/lox/crates/lox-extensions
RUN cargo test --release build --features bridgeauth,test,fast
ENV SHELL=/bin/bash
