Geospatial_analysis / Dockerfile
rajkhanke's picture
Update Dockerfile
15b641c verified
raw
history blame contribute delete
381 Bytes
# Use lightweight Python image
FROM python:3.10-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Set working directory
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy project files
COPY . .
# Expose port 5000
EXPOSE 7860
# Run the Flask app
CMD ["python", "app.py"]