Good changes

This commit is contained in:
Andras Schmelczer 2026-02-10 22:09:46 +00:00
parent d39d1b15fd
commit 1f68ca0512
23 changed files with 670 additions and 289 deletions

View file

@ -1,5 +1,7 @@
FROM python:3.12-slim
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
# 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 && \
@ -7,8 +9,8 @@ RUN apt-get update && \
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY pyproject.toml .
RUN uv pip install --system --no-cache -r pyproject.toml
COPY main.py .

11
r5-service/pyproject.toml Normal file
View file

@ -0,0 +1,11 @@
[project]
name = "r5-service"
version = "0.1.0"
requires-python = ">=3.12"
dependencies = [
"r5py>=0.8",
"fastapi>=0.115",
"uvicorn>=0.34",
"geopandas>=1.0",
"shapely>=2.0",
]

View file

@ -1,5 +0,0 @@
r5py>=0.8
fastapi>=0.115
uvicorn>=0.34
geopandas>=1.0
shapely>=2.0