Spaces:
Running
Running
File size: 458 Bytes
a80532f e928667 a80532f e928667 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | FROM python:3.11-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
libgdal-dev gdal-bin libgeos-dev libproj-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app/ app/
COPY data/ data/
COPY database/ database/
EXPOSE 7860
CMD ["gunicorn", "--chdir", "app", "main:server", \
"--bind", "0.0.0.0:7860", "--workers", "2", "--timeout", "120"] |