trainsim/Dockerfile
Mona Lisa 9c5ef3a5cd
Some checks are pending
CodeView TrainSim CI / test (push) Waiting to run
CodeView TrainSim CI / docker (push) Blocked by required conditions
Add Python TrainSim with loop track map and physics.
FastAPI server, replaceable JSON config, tests, Dockerfile.
Pairs with ATO via spec/interface.md contract.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-14 20:37:22 +00:00

10 lines
332 B
Docker

FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN pytest -q
EXPOSE 8080
ENV SIM_CONFIG=/app/config/sim.default.json
ENV TRACK_CONFIG=/app/config/track.default.json
CMD ["uvicorn", "trainsim.app:create_app", "--factory", "--host", "0.0.0.0", "--port", "8080"]