FROM --platform=linux/x86_64 ubuntu:latest
RUN apt-get update && apt-get install -y clang curl
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
WORKDIR /usr/src/phanalist
COPY . .
RUN ~/.cargo/bin/cargo build --target x86_64-unknown-linux-gnu --release