FROM debian:stable-slim RUN apt-get update && apt-get upgrade --yes # set workdir to /usr/src/env WORKDIR /usr/src/env # set up base package requirements for can device RUN apt-get install --yes can-utils iproute2 # set up python, create venv, and install cantools RUN apt-get install --yes python3 python3-venv && python3 -m venv ./venv && . venv/bin/activate && pip install cantools # copy init.sh to workdir COPY init.sh ./ ENTRYPOINT ["/bin/bash", "init.sh"]