FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive

RUN apt update
RUN apt-get install -y software-properties-common less vim git curl
RUN add-apt-repository -y ppa:deadsnakes/ppa
RUN apt update
RUN apt-get install -y sumo sumo-tools sumo-doc

# Installing python stuff
RUN apt-get install -y python3.11 python3-pip python3.11-distutils
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.11
RUN python3.11 -m pip install --upgrade pip

# Move files and make it cwd
RUN mkdir -p /sumo_simulation
COPY . /sumo_simulation/.
WORKDIR /sumo_simulation

# Requirements of the own SUMO Project
RUN python3.11 -m pip install -r requirements.txt
ENTRYPOINT ["python3.11", "YOUR_LIBSUMO_MAIN_TO_RUN_SUMO.py"]