obsw/docker/compile_obsw/Dockerfile

29 lines
823 B
Docker

FROM debian:12.5
ENV DEBIAN_FRONTEND=noninteractive
# Install required packages
RUN apt-get update && apt-get install -y \
make \
cmake \
gcc \
curl \
gcc-arm-none-eabi \
doxygen \
graphviz \
&& rm -rf /var/lib/apt/lists/*
# Remove the package lists to reduce the image size
# Install Rustup and select the nightly toolchain
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly && \
. $HOME/.cargo/env
# Add the Rust toolchain binaries to PATH
ENV PATH="/root/.cargo/bin:${PATH}"
# Install the nightly Rust toolchain, the rust-src component, and set the override
RUN rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
WORKDIR /obsw/
# ENV DOT_PATH=/usr/local/bin # Works without this in debian @paul