Spaces:
Build error
Build error
File size: 529 Bytes
56d0c88 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
FROM python:3.9-slim
# Install system dependencies
RUN apt-get update && apt-get install -y \
gdal-bin \
libgdal-dev \
&& rm -rf /var/lib/apt/lists/*
# Set up environment variables
ENV PYTHONUNBUFFERED=1
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Create a directory for the GeoTIFFs
RUN mkdir -p /data/cogs
# Copy the app code
COPY app.py .
# Expose port 7860 (default for Hugging Face Spaces)
EXPOSE 7860
# Start the app
CMD ["python", "app.py"] |