fskd-mitb2-demo / Dockerfile
Taimur Khan
configs updated
b55f7de
raw
history blame contribute delete
637 Bytes
FROM python:3.12.3-slim
# install GDAL system libs & dev headers (matching what you want to install)
RUN apt-get update && \
apt-get install -y \
gdal-bin \
libgdal-dev \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# GDAL environment variable so pip picks correct gdal-config
ENV GDAL_VERSION=3.10
ENV CPLUS_INCLUDE_PATH=/usr/include/gdal
ENV C_INCLUDE_PATH=/usr/include/gdal
COPY requirements.txt .
# install requirements AFTER libgdal-dev is available
RUN pip install --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
COPY . /app
WORKDIR /app
EXPOSE 7860
CMD ["python", "app.py"]