Skip to content
saeid rezaei edited this page Apr 16, 2025 · 1 revision

FROM ubuntu:22.04

Install essential packages including CAN tools

RUN apt-get update && apt-get install -y
build-essential
cmake
git
libssl-dev
pkg-config
python3
python3-pip
wget
can-utils
iproute2
&& rm -rf /var/lib/apt/lists/*

Set working directory

WORKDIR /app

Copy project files

COPY . .

Build script permissions

RUN chmod +x fetch_and_build.sh

Build the project

RUN ./fetch_and_build.sh

Add CAN interface setup script

COPY setup_can.sh /usr/local/bin/ RUN chmod +x /usr/local/bin/setup_can.sh

Entry point script

ENTRYPOINT ["/usr/local/bin/setup_can.sh"] CMD ["./build/VirtualBus"]

docker-compose up --build

Clone this wiki locally