terrology / Dockerfile
Dav66's picture
Update Dockerfile
9f0dce8 verified
Raw
History Blame Contribute Delete
469 Bytes
FROM python:3.12-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
libexpat1 \
libgomp1 \
osmium-tool \
&& rm -rf /var/lib/apt/lists/*
RUN pip install uv --no-cache-dir
WORKDIR /app
COPY pyproject.toml uv.lock* ./
RUN uv sync --no-dev --frozen --extra web
COPY . .
RUN pip install ./osm2streets_python-0.1.0-cp312-cp312-linux_x86_64.whl
EXPOSE 8000
CMD ["uv", "run", "uvicorn", "web.app:app", "--host", "0.0.0.0", "--port", "8000"]