Initial commit from upstream

This commit is contained in:
Will Bradley
2025-12-05 14:29:17 -08:00
commit 3a85c3e281
21 changed files with 5339 additions and 0 deletions

33
Dockerfile Normal file
View File

@@ -0,0 +1,33 @@
FROM python:3.11-slim
# Install system dependencies
RUN apt-get update && apt-get install -y \
libspatialindex-dev \
libgeos-dev \
libproj-dev \
wget \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy only necessary Python scripts and web files
COPY *.py ./
COPY web/ ./web/
# Create /data directory (will be mounted as volume)
RUN mkdir -p /data
# Expose port
EXPOSE 5000
# Set environment variables
ENV FLASK_APP=web/server.py
ENV PYTHONUNBUFFERED=1
# Run the Flask server
CMD ["python", "web/server.py"]