# Use an Ubuntu base image FROM ubuntu:20.04 # Avoid prompts from apt ENV DEBIAN_FRONTEND=noninteractive # Install necessary packages RUN apt-get update && apt-get install -y \ curl \ build-essential \ pkg-config \ libssl-dev \ && rm -rf /var/lib/apt/lists/* # Install Rust RUN curl https://sh.rustup.rs -sSf | sh -s -- -y ENV PATH="/root/.cargo/bin:${PATH}" WORKDIR /app COPY . /app CMD ["cargo", "test"]