This repository has been archived on 2026-03-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
rio-tiler-tms/Dockerfile
2026-02-25 09:28:37 +08:00

27 lines
482 B
Docker

FROM python:3.12-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
gcc \
libssl-dev \
libffi-dev \
curl \
libexpat1 \
gdal-bin \
libgdal-dev \
&& rm -rf /var/lib/apt/lists/*
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
COPY pyproject.toml ./
COPY app_mars.py ./
RUN uv pip install --system -e .
RUN mkdir -p /app/data
EXPOSE 8002
CMD ["uv", "run", "uvicorn", "app_mars:app", "--host", "0.0.0.0", "--port", "8000"]