17 lines
417 B
Docker
17 lines
417 B
Docker
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"]
|