This commit is contained in:
Andras Schmelczer 2026-02-10 22:04:55 +00:00
parent 1397b6afd5
commit d39d1b15fd
3 changed files with 175 additions and 0 deletions

17
r5-service/Dockerfile Normal file
View file

@ -0,0 +1,17 @@
FROM python:3.12-slim
# r5py needs a JVM to run the R5 routing engine
RUN apt-get update && \
apt-get install -y --no-install-recommends openjdk-21-jre-headless curl libexpat1 libgdal-dev && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY main.py .
EXPOSE 8003
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8003"]