forked from denoslab/AgentEvac
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 771 Bytes
/
Dockerfile
File metadata and controls
28 lines (20 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM python:3.11-slim
# Install SUMO (headless)
RUN apt-get update \
&& apt-get install -y --no-install-recommends sumo \
&& rm -rf /var/lib/apt/lists/*
ENV SUMO_HOME=/usr/share/sumo
WORKDIR /app
COPY requirements.txt pyproject.toml ./
RUN pip install --no-cache-dir -r requirements.txt && pip install --no-cache-dir -e .
COPY agentevac/ ./agentevac/
COPY sumo/ ./sumo/
COPY entrypoint.sh .
RUN chmod +x entrypoint.sh
# External scenario files (lytton.net.xml, polygons.xml) are not committed
# and must be mounted at runtime — see docker-compose.yml.
# outputs/ is also expected to be a host-mounted volume.
RUN mkdir -p outputs
EXPOSE 8765
ENTRYPOINT ["./entrypoint.sh"]
CMD ["--sumo-binary", "sumo", "--scenario", "advice_guided", "--metrics", "on"]